155

Count Up on Scroll

Numbers count up from zero only when the stats section scrolls into view

Card & groupOn scrollEnterNumbers & dataScroll effectGSAPScrollTrigger

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A results section mid-page (three cells: number + caption). When it scrolls to about 80% of the viewport, the three cells fade in from below in turn while the numbers count up from 0 to their targets (e.g. 128, 99%, 4.9, decimals allowed), about 1.6 s with ease-out; scrolling back up resets them so they play again next time (or play only once). (GSAP: ScrollTrigger.create { start:"top 80%", onEnter, onLeaveBack }, numbers tween a value on an object + onUpdate, toFixed for decimals)

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 card & group effects

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

Browse all effects →