Skip to content

Instantly share code, notes, and snippets.

@bfgeek
Last active January 10, 2017 22:25
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 bfgeek/460c21569776f75fb707fa8d20419dbe to your computer and use it in GitHub Desktop.
Save bfgeek/460c21569776f75fb707fa8d20419dbe to your computer and use it in GitHub Desktop.
<style>
.painting {
background-image: paint(typed, 10px), url(foo2.png);
background-image: paint(typed, red), url(foo1.png);
}
</style>
<script>
// paint worklet
registerPaint('typed', class {
static inputArguments = ['<length>'];
// etc.
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment