wilderness

An SVG animation API

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
wilderness
14655.1.25 years ago7 years agoMinified + gzip package size for wilderness in KB

Readme

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