# AlloyTeam/PhyTouch

Smooth scrolling, rotation, pull to refresh, page transition and any motion for the web - 丝般顺滑的触摸运动方案

Repository: https://github.com/AlloyTeam/PhyTouch
Canonical: https://ross.abutalabs.com/products/phytouch
Homepage: http://alloyteam.github.io/PhyTouch/
Language: JavaScript
License: MIT
License Family: permissive
Topics: touch, scrolling, scroll, transform, transformations, motion, transformjs, css3transform
Last push: 2023-01-06T03:01:47+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": 3978, "days_push": 1335, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2959, forks 513 (observed 2026-08-28T04:07:32.306495+00:00)

## What it is
PhyTouch is a tiny (2.24 kB gzipped) JavaScript library for smooth touch-driven motion on the web, such as scrolling, rotation, pull to refresh, and page transitions. It maps touch input to any object property with configurable physics-like easing and callbacks, letting developers drive DOM transforms or other animations.

## Use cases
- implement smooth touch scrolling on mobile web pages
- add pull-to-refresh to a mobile web app
- build full-page swipe transitions
- create touch-driven carousels and rotation effects
- animate DOM transforms based on touch gestures
- integrate touch motion with Three.js scenes

## When to choose
- you need lightweight touch motion/scrolling without a large framework
- you want fine control over touch-to-property mapping, easing, and callbacks
- you are building mobile web experiences like pull-to-refresh or full-page scroll
- you want a tiny library that works alongside other tools like Three.js or Omi

## When to avoid
- you need a full-featured scroll/animation framework with momentum, snap, and broad browser support out of the box
- your project targets desktop-only mouse interactions rather than touch
- you need actively developed software with frequent updates and modern tooling
- you are working in a framework ecosystem with native touch handling (e.g., React Native)

## Facets
- artifact type: library
- maturity: maintenance
- function: animation, ui-components, state-management
- domain: web-development, frontend, mobile-development
- platform: browser, cross-platform
- tags: touch-gestures, smooth-scrolling, pull-to-refresh, motion, transform, mobile-web, javascript

## Member repositories
- AlloyTeam/PhyTouch (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:32.306495+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:32:10.585522+00:00, confidence not recorded.
  - readme: https://github.com/AlloyTeam/PhyTouch (fetched 2026-08-28T04:07:32.306495+00:00, sha 75e7d36f584a)
  - homepage: http://alloyteam.github.io/PhyTouch/ (fetched 2026-08-29T09:47:49.436326+00:00, sha ff80690f8132)
- Data as of 2026-08-30T08:39:29.467469+00:00.
