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

Lighweight Tweening Library for web / games

  • 3.1.3
  • latest
  • npm
  • Socket score

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

Logo

Fatina

Lighweight Tweening Library for Games / Web

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

NPM Version NPM Download CDN Download Build Status Coverage Status 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
  • Compatible with NodeJS & Browser & Deno (ESM and CommonJS)
  • Open source and MIT License

Getting Started

Install

If you use NPM

npm install fatina
// or: yarn add fatina

And load it with

// standard import with typescript
import Fatina from 'fatina'

// OR standard node.js require
const Fatina = require('fatina').default

// OR Deno
import Fatina from 'https://cdn.skypack.dev/fatina'

And if you want to use the CDN version (ESM):

<script type="module">import Fatina from 'https://cdn.jsdelivr.net/npm/fatina' // your code</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

yarn
yarn 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 yarn test

Other

To make a build (generated in build/)

yarn build

Keywords

FAQs

Package last updated on 24 Jan 2022

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