Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/spirit/spirit

🙌 Play Spirit animations on the web
https://github.com/spirit/spirit

animation app gsap player runtime tool

Last synced: 13 days ago
JSON representation

🙌 Play Spirit animations on the web

Awesome Lists containing this project

README

        


Spirit

Spirit ⚡️ Web Player



travis


version


greensock


downloads


release


Lightweight and easy to use


Play your animations on the web

### Getting Started:

- [Spirit Homepage](https://spiritapp.io)
- [Get Started](https://spiritapp.io/getstarted)
- [Documentation](https://docs.spiritapp.io)

### Browser:

```html





spirit
.loadAnimation({
path: './animation.json',
container: document.getElementById('container'),
})
.then(timeline => timeline.play());

```

### Node:

install:

```bash
npm install spiritjs --save
```

Usage:

```js
// load GSAP from CDN

import spirit from 'spiritjs';

spirit.loadAnimation({ path: './animation.json' }).then(timeline => timeline.play());
```

```js
// use existing GSAP instance

import gsap from 'gsap';
import spirit from 'spiritjs';

spirit.setup(gsap).then(() => {
spirit.loadAnimation({ path: './animation.json' }).then(timeline => timeline.play());
});
```

For more info check out the [API Documentation](https://docs.spiritapp.io/web-player/simple-api.html).

### Links

- [Documentation - What is Spirit](https://docs.spiritapp.io/spirit.html)
- [Documentation - Install Web Player](https://docs.spiritapp.io/web-player/install.html)
- [Documentation - Simple Usage](https://docs.spiritapp.io/web-player/simple-api.html)
- [Documentation - Extended Usage](https://docs.spiritapp.io/web-player/extended-api/)

### Examples