Wilderness
September 11, 2017 路 View on GitHub
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)