Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/colinmeinke/wilderness
- Owner: colinmeinke
- License: mit
- Created: 2016-05-09T16:28:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-14T20:58:07.000Z (almost 6 years ago)
- Last Synced: 2024-10-04T07:21:12.471Z (about 1 month ago)
- Topics: animation, javascript, morph, shapes, svg, timeline, tween, wilderness
- Language: JavaScript
- Homepage: https://wilderness.now.sh
- Size: 437 KB
- Stars: 155
- Watchers: 10
- Forks: 8
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
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)