Skip to content

Instantly share code, notes, and snippets.

@Fil
Last active October 5, 2018 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fil/97effd42b39706a640e33038291f6034 to your computer and use it in GitHub Desktop.
Save Fil/97effd42b39706a640e33038291f6034 to your computer and use it in GitHub Desktop.
Reuleaux animated
license: mit
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<style>
body { margin-top:2em;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
<script type="module">
import notebook from "https://api.observablehq.com/d/fb956bd345bd9b97.js"
const renders = {
"ANIMATED": "#ANIMATED",
};
import {Inspector, Runtime} from "https://unpkg.com/@observablehq/notebook-runtime@1.2.0?module";
for (let i in renders)
renders[i] = document.querySelector(renders[i]);
Runtime.load(notebook, (variable) => {
if (renders[variable.name])
return new Inspector(renders[variable.name]);
});
</script>
</head>
<body>
<div id="ANIMATED"></div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment