scroll-craft v0.1
Zero dependencies. ~4KB. IntersectionObserver-powered reveals, counters, progress fills, staggers, zooms, and text reveals — all in TypeScript.
Animate elements into view from any direction with configurable easing, distance, and delay.
Count from zero to any number when the element enters the viewport. Custom formatter support.
Fill child elements with clip-path as steps scroll through the viewport — or trigger on replay.
Words arrive one beat at a time.
Letters cascade with stagger.
Split text into word or letter spans and stagger each into view. Accessible — nested elements stay intact.
Observe a parent and cascade its children into view one after another with a configurable delay.
Fade, de-blur, and lift elements into clarity as they enter the viewport. Great for hero panels.
Scale elements from a smaller starting point while fading them in. Stays on the compositor path.
Bind any CSS property (width, scale, opacity) to the page or container scroll position in real time.
Timeline-based scroll animation — define steps with from/to states and map them to scroll progress through a section.
Move elements at a different speed to the scroll. Configurable axis, speed, and clamping.
All effects are available on a single ScrollCraft instance. Chain them together and call .destroy() to disconnect all observers and scroll listeners at once.