Public Beta compatibility policy
Latest releases
@ds-gn/motion · 0.11.2
Require Bun 1.4.4 for repository tooling and use its built-in formatter.
1 release note
Read release notes →@ds-gn/motion · 0.11.1
Update package repository metadata to the renamed DS-GN GitHub repository.
1 release note
Read release notes →@ds-gn/motion · 0.9.0
Add splitText(el), which wraps each character of an element's text in its own inline-block element for letter-by-letter motion with sequence(split.chars, …). Words stay unbreakable so lines still wrap between them, nested markup is kept, characters are split by grapheme, and assistive technology reads a visually hidden copy of the text once instead of letter by letter. revert() restores the original nodes.
1 release note
Read release notes →@ds-gn/motion · 0.8.0
Introduce @ds-gn/motion, a token-driven motion engine on the Web Animations API. It provides timeline (ordered steps with overlap timing), sequence (staggered elements with start/end/center/random order, a maxDuration cap on the start spread, and data-motion-role choreography), awaitable enter/exit that reverse from the current position when interrupted, inView viewport triggers, and the slideUp, fade, and scaleIn presets. Durations and easings resolve from the motion custom properties with fallbacks matching @ds-gn/tokens. Under prefers-reduced-motion, movement is dropped, offsets collapse, and promises still resolve. MotionController in @ds-gn/motion/lit adds viewport-triggered timelines and sequences with cleanup on disconnect. Both entry points are safe to import during server rendering.
1 release note
Read release notes →