Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/colinmeinke/wilderness

An SVG animation API
https://github.com/colinmeinke/wilderness

animation javascript morph shapes svg timeline tween wilderness

Last synced: 10 days ago
JSON representation

An SVG animation API

Awesome Lists containing this project

README

        

# Wilderness

An SVG animation API ยท [https://wilderness.now.sh](https://wilderness.now.sh)

[![gzip size](http://img.badgesize.io/https://unpkg.com/wilderness/dist/wilderness.production.js?compression=gzip&label=gzip%20size&style=flat&cache=false)](https://unpkg.com/wilderness/dist/wilderness.production.js) [![test coverage](https://img.shields.io/coveralls/colinmeinke/wilderness/master.svg?style=flat)](https://coveralls.io/github/colinmeinke/wilderness) [![travisci](https://img.shields.io/travis/colinmeinke/wilderness.svg?style=flat)](https://travis-ci.org/colinmeinke/wilderness) [![npm version](https://img.shields.io/npm/v/wilderness.svg?style=flat)](https://www.npmjs.com/package/wilderness)

## 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

```js
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](https://wilderness.now.sh/getting-started) ยท [View examples](./examples)