zwip
Version:
Utility for creating JS animations on top of W3C [requestAnimationFrame](https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame) function.
47 lines (40 loc) • 883 B
Markdown
# Zwip
Utility for creating JS animations on top of W3C [requestAnimationFrame](https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame) function.
## Examples
To show it in action:
1. clone the repo :
```
git clone https://github.com/Gastonite/zwip
```
2. Install **zwip** dependencies:
- if you are using yarn :
```
yarn
```
- if you are using npm :
```
npm i
```
3. After dependences are installed, go to one example directory :
```
cd examples/<example-name>
```
4. install example dependencies and run **dev** npm script:
- if you are using yarn :
```
yarn && yarn dev
```
- if you are using npm :
```
npm i && npm run dev
```
Now the demo is visible at [http://localhost:3000](http://localhost:3000)
## Installation
- if you are using yarn :
```
yarn add -D zwip
```
- if you are using npm :
```
npm i -D zwip
```