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

https://github.com/trustyoo86/framation-doc

documentation relates on framation
https://github.com/trustyoo86/framation-doc

Last synced: 3 months ago
JSON representation

documentation relates on framation

Awesome Lists containing this project

README

        

---
description: Animation utility plugin using pure javascript or jquery
---

# framation

### Installation

Install using npm or yarn

```bash
# npm
$ npm i framation --save
# yarn
$ yarn i framation
```

### Usage

Added target tag in your html.

```markup


```

Use your javascript

```javascript
import Framation from 'framation';
// or
const Framation = require('framation');

var ani = new Framation();

ani
.set(document.querySelector('.test'), {left: '100px', time: 2000}) // test element move left 100px during 2seconds
.set(document.querySelector('.test'), {left: '200px', time: 2000}) // test element move left 200px during 2seconds after move left 100px
```