Built with blockbuilder.org
Last active
October 5, 2018 13:35
-
-
Save Fil/97effd42b39706a640e33038291f6034 to your computer and use it in GitHub Desktop.
Reuleaux animated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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