wilderness icon indicating copy to clipboard operation
wilderness copied to clipboard

An SVG animation API

Wilderness

An SVG animation API ยท https://wilderness.now.sh

gzip size test coverage travisci npm version

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)

Learn Wilderness ยท View examples