FindSoftware

tween.js

JavaScript and TypeScript tweening engine that animates properties of objects with easing functions.

tween.js changes properties of a JavaScript object from a start value to a target over a duration, and applies an easing curve to the progress. The easing functions come from Robert Penner’s equations and can be reused outside a tween, and custom easing functions are accepted too.

It does one thing: it tweens the properties of an object. It does not add CSS units, does not interpolate colors and does not run its own animation loop. The caller passes a time value from whatever loop the page uses, and the update callback writes the new values somewhere, such as a CSS transform on an element. The user guide covers the API in more detail.

Worth knowing

The README marks two install routes as deprecated: the global variable from a CDN, which uses a UMD file, and the CommonJS build. The README says the UMD file will be removed in a future major version, so the ES module build is the route it recommends.

Identity

Status
Active
Maintainer
Tween.js authors5
Maintained by
Community
First release
20114

Rendering and deploy

Install with
npm, script tag, source build3

Releases

Current major version
256
Last release
2024-07-266

Adoption

GitHub stars
10,1562
npm downloads a week
23,416,5158
Contributors
727
Dependent repositories
8,4989
Dependent packages
6819

Why these figures do not compare

Sources

  1. 2026-11-16: links
    tweenjs.github.io/tween.js/
  2. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/tweenjs/tween.js
  3. 2026-11-16: links, Categories, Install with
    raw.githubusercontent.com/tweenjs/tween.js/main/README.md
  4. 2026-11-16: First release
    api.github.com/repos/tweenjs/tween.js/tags
  5. 2026-11-16: Maintainer, License, License model
    raw.githubusercontent.com/tweenjs/tween.js/main/LICENSE
  6. 2026-11-16: Current major version, Last release
    api.github.com/repos/tweenjs/tween.js/releases
  7. 2026-11-16: Contributors
    api.github.com/repos/tweenjs/tween.js/contributors
  8. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@tweenjs/tween.js
  9. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@tweenjs%2Ftween.js

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON