Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fatina

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fatina

Small & Light tweening library for web / games

  • 3.0.7
  • npm
  • Socket score

Version published
Weekly downloads
532
increased by11.06%
Maintainers
1
Weekly downloads
 
Created
Source

Logo

Fatina

Small & Light tweening library for Games / Web

  • Website: Here
  • API: Here
  • Samples: Here
  • Online Demo: Here

NPM Version NPM Download CDN Download Build Status Coverage Status Codacy Badge License

Description

A comprehensive and easy to use animation library for Typescript / Javascript

  • Easy to use, API strongly inspired by Dotween (C# tweening library)
  • Lightweight with no dependencies ( < 20KB )
  • Unit tested + code coverage
  • Open source and MIT License

Getting Started

Install

If you use NPM

> npm install fatina

And load it with

// standard import with esm module or typescript
import Fatina from 'fatina';
// OR
// standard node.js require
var fatina = require('fatina').default;

And if you want to use the CDN version:

<script src="https://cdn.jsdelivr.net/npm/fatina/build/fatina.min.js"></script>

Usage

Fatina.tween(obj)
    .to(destination, duration)
    .start();

// example
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

Keywords

FAQs

Package last updated on 29 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc