tween.js
JavaScript and TypeScript tweening engine that animates properties of objects with easing functions.
tweenjs.github.io/tween.js/repositorydocs
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
Rendering and deploy
- Install with
- npm, script tag, source build3
Releases
Adoption
Sources
- 2026-11-16: links
tweenjs.github.io/tween.js/ - 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/tweenjs/tween.js - 2026-11-16: links, Categories, Install with
raw.githubusercontent.com/tweenjs/tween.js/main/README.md - 2026-11-16: First release
api.github.com/repos/tweenjs/tween.js/tags - 2026-11-16: Maintainer, License, License model
raw.githubusercontent.com/tweenjs/tween.js/main/LICENSE - 2026-11-16: Current major version, Last release
api.github.com/repos/tweenjs/tween.js/releases - 2026-11-16: Contributors
api.github.com/repos/tweenjs/tween.js/contributors - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@tweenjs/tween.js - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@tweenjs%2Ftween.js