float

A gentle bob with a little sideways drift.

Usage

Set animation="float" 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.