breathe
A slow swell in scale and brightness, one breath every 4 seconds.
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="breathe" 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.