@rougher-stuff/animation
v0.0.1
Published
Progress-driven animation runtime for Rougher Stuff
Readme
@rougher-stuff/animation
Progress-driven animation controller shared by Rough.js and Rough Notation. The runtime supports
play, pause, reverse, seek, cancellation, completion promises, event subscriptions, and normalized
timelines. Manual seek() does not depend on browser layout or SVG DOM path metrics.
const animation = createAnimation({
duration: 800,
update(progress) {
render(progress);
},
});
animation.seek(0.4).play();
await animation.finished;