feat(core): add anime.js runtime adapter#569
Merged
miguel-heygen merged 2 commits intomainfrom Apr 29, 2026
Merged
Conversation
Add a RuntimeDeterministicAdapter for anime.js v4+ that enables seekable frame-accurate rendering of anime.js animations in HyperFrames compositions. The adapter: - Auto-discovers instances from `anime.running` - Accepts manual registration via `window.__hfAnime` - Converts seek time (seconds) to milliseconds for anime.js `.seek()` - Handles multiple instances, gracefully skips failures Follows the same pattern as the existing Lottie, Three.js, WAAPI, and CSS adapters.
Exercises the anime.js v4 runtime adapter with a 6-second composition that covers: - createTimeline() with seek() - stagger() with grid patterns (center + edges) - Multiple overlapping timelines dispatched via __hfAnime - CSS transform animations (rotate, skew, scale, translate) Baseline generated inside Dockerfile.test on the devbox. 100/100 visual checkpoints pass with psnr threshold 30.
vanceingalls
approved these changes
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RuntimeDeterministicAdapterfor anime.js v4+ alongside existing Lottie, Three.js, WAAPI, and CSS adapters.seek(timeMs)on registered instancesanime.running; compositions can also register manually viawindow.__hfAnimeUsage in compositions
Files changed
packages/core/src/runtime/adapters/animejs.ts— adapter implementationpackages/core/src/runtime/adapters/animejs.test.ts— 15 unit testspackages/core/src/runtime/init.ts— register adapter in runtime initpackages/core/src/runtime/window.d.ts— addanimeand__hfAnimeglobalsTest plan
bun run --cwd packages/core test -- --run adapters/animejs)bun run build)