# zhangxinxu/Tween

tween.js

Repository: https://github.com/zhangxinxu/Tween
Canonical: https://ross.abutalabs.com/products/tween
Language: JavaScript
License Family: other
Last push: 2024-03-29T08:00:30+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4721, "days_push": 887, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1009, forks 266 (observed 2026-08-28T04:03:12.739537+00:00)

## What it is
A small JavaScript library of easing/tween algorithms for numeric animations, plus an animation.js helper exposing Math.animation(from, to, duration, easing, callback). It returns a requestAnimationFrame handle that can be cancelled.

## Use cases
- animate a number from one value to another in javascript
- easing functions for web animations
- smooth scroll or value tweening without a framework
- cancel a running animation frame in js
- bounce or quad easing for canvas animations

## When to choose
- you need lightweight, dependency-free tweening in the browser
- you want classic easing curves (Linear, Quad, Bounce, etc.) with a simple callback API

## When to avoid
- you need a full animation framework with CSS/DOM animation support
- you require an officially licensed or actively developed package

## Facets
- artifact type: library
- maturity: maintenance
- function: animation
- domain: web-development, frontend
- platform: browser
- tags: tweening, easing-functions, requestanimationframe, vanilla-js, javascript

## Member repositories
- zhangxinxu/Tween (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:12.739537+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:12:05.754413+00:00, confidence not recorded.
  - readme: https://github.com/zhangxinxu/Tween (fetched 2026-08-28T04:03:12.739537+00:00, sha 62b82e8cdf1c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
