pulse
A quick heartbeat in scale, 1.2 beats per second.
Add the script once, then use the tags anywhere.
<script type="module" src="https://mmaxence.github.io/solids/solids.js"></script>
Or copy the library into your project: download solids.js from the repo and serve it yourself. No build step, no other files.
Usage
Set animation="pulse" on any object. Combine animations with spaces, for example animation="spin breathe". The change eases over 400 ms. With reduced motion on, the object stays at its rest pose.
License
MIT. Use it anywhere, credit appreciated.