Fatina
Small & Light tweening library for Games / Web
Description
A comprehensive and easy to use animation library for Typescript / Javascript
- Easy to use (API strongly inspired by Dotween)
- Lightweight with no dependencies ( < 20KB )
- Unit tested + code coverage
- Open source and MIT License (use it as you please)
Getting Started
Install
If you want to use the CDN version:
<script src="https://cdn.jsdelivr.net/npm/fatina@latest/build/fatina.min.js"></script>
Or if you use NPM
> npm install fatina
And load it with
var Fatina = require('fatina');
import Fatina from 'fatina';
Usage
Fatina.tween(obj)
.to(destination, duration)
.start();
Fatina.tween(sprite)
.to({ x: 12, y:25 }, 0.5)
.start();
Development
Getting Started
If you want to take a look at the code or help, it's quite easy to get started
npm install
npm run dev
This will start a server on http://localhost:8080/ where you can test few samples with the current version
Tests
When you are done with your change, just make sure to run tests npm run test
Other
To make a build (generated in build/
)
npm run build
To generate the API docs (generated in build/docs/
)
npm run docs