worklet

Use the CSS "houdini" API today with this easy wrapper!

Usage no npm install needed!

<script type="module">
  import worklet from 'https://cdn.skypack.dev/worklet';
</script>

README

Worklet

Use the CSS "houdini" API today with this easy wrapper!

Example

const worklet = require('worklet')
const element = document.getElementById('target')

worklet.registerPaint(element, (ctx, dimensions) => {
    ctx.fillRect(0, 0, 10, 10)
})