slowreveal

Animate SVG line drawings.

Usage no npm install needed!

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

README

slowreveal

✏️ Animate SVG line drawings.

NPM Version

Install

$ npm install slowreveal
<script type="module" src="https://unpkg.com/slowreveal@1.2.1/index.js"></script>
<script>
import slowreveal from 'https://unpkg.com/slowreveal@1.2.1/index.js';
</script>

Usage

import slowreveal from 'slowreveal';

document
    .querySelectorAll("object[type='image/svg+xml']")
    .forEach(svgObject => slowreveal(svgObject, { speed: 20 }));