Wilderness
An SVG animation API Β· https://wilderness.now.sh
Summary
- π Small file size (15.1kb minified + gzip)
- π Simple, functional API
- π£ Morph from anything, to anything
- β±οΈ Queue multiple animations on a timeline
- π Powerful playback control
Hello world
import { shape, render, timeline, play } from 'wilderness'
const morph = shape(
{ el: document.querySelector('circle') },
{ el: document.querySelector('rect') },
)
const animation = timeline(morph, {
iterations: Infinity,
alternate: true
})
render(document.querySelector('svg'), animation)
play(animation)