157

Scroll Draw Path

A curve draws itself as you scroll, linking the sections

Shape & SVGOn scrollScroll effectNumbers & dataGSAPDrawSVG scrub

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A curve winds left and right through the whole page behind the content, over a very faint guide track; as you scroll down, an accent-colored line draws along the track, drawn as far as you've scrolled and retracting when you scroll back; a few nodes along the line (dot + title) fade in alternately from either side as the line approaches. Good for brand stories, journeys and timelines. (GSAP: DrawSVGPlugin drawSVG 0%→100% bound to ScrollTrigger scrub; the SVG is as tall as the content with preserveAspectRatio:none; nodes fade in with their own toggleActions)

When you copy it, a note to “match the site’s existing theme colors” is added automatically, so you don’t need to specify colors.

How to use it

  1. Tap “Copy AI prompt”.
  2. Paste it into an AI such as ChatGPT or Claude, and tell it which element on your site to apply it to (for example, the homepage headline or a buy button).
  3. The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.

More shape & svg effects

346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts

Browse all effects →