Skip to content

Instantly share code, notes, and snippets.

Last active June 1, 2017 17:50
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Loading some middleware and diffHTML with ES Modules in Chromium 60
body { display: flex; align-items: center; justify-content: center; }
h1 { font-size: 60px; font-family: Helvetica; }
<script type="module">
import { innerHTML, html, use } from '';
import createLogger from '';
import inlineTransitions from '';
const onattached = domNode => domNode.animate([
{ opacity: '0.0' },
{ opacity: '1.0' },
], { duration: 1000 });
innerHTML(document.body, html`
<h1 onattached=${onattached}>Hello world!</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment