All skills

Motion

Scroll-triggered motion

Fades and lifts sections into view as you scroll, with staggered children and reduced-motion support.

Paste it into any prompt, or type @ in the chat.

Example prompt

Animate the sections as they scroll in @scroll-motion

What Spearbot does with it

Add tasteful scroll-in motion with vanilla JS and CSS.
- Mark elements with data-reveal (and data-reveal-delay for stagger, 60–120ms apart). CSS: start at opacity 0 and translateY(16–24px); .is-visible transitions to opacity 1 and none over 600–800ms with cubic-bezier(.2,.7,.2,1).
- One IntersectionObserver (rootMargin "0px 0px -10% 0px") adds .is-visible once, then unobserves.
- Wrap the hidden starting state in @media (prefers-reduced-motion: no-preference) so content is always visible without motion or JS.
- Animate only opacity and transform. Don't animate every element; headings, cards and images are enough.