BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/PaceUI GSAP/stagger-on-scroll

Stagger on Scroll

paceui-gsap/stagger-on-scroll
FreeComponent

Stagger elements into view with scroll-triggered fade, slide, zoom, or blur effects.

Live preview

live · rendered by the registry
Rendered by PaceUI GSAP on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://gsap.paceui.com/r/stagger-on-scroll.json

Source

components/gsap/stagger-on-scroll.tsxgsap.paceui.com/r/stagger-on-scroll.json
1"use client";
2
3import { ComponentProps, useRef } from "react";
4
5import { useGSAP } from "@gsap/react";
6import gsap from "gsap";
7import { ScrollTrigger } from "gsap/ScrollTrigger";
8
9gsap.registerPlugin(ScrollTrigger);
10
11type EffectType = "scale" | "slideInRight" | "blur" | "random";
12
13type StaggerOnScrollProps = {
14 effect?: EffectType;
15} & ComponentProps<"div">;
16
17export const StaggerOnScroll = ({ effect = "scale", ...props }: StaggerOnScrollProps) => {
18 const wrapperRef = useRef<HTMLDivElement | null>(null);
19
20 useGSAP(
21 () => {
22 if (!wrapperRef.current || !wrapperRef.current.children.length) return;
23
24 const animationPresets: Record<EffectType, gsap.TweenVars> = {
25 scale: {
26 opacity: 0,
27 scale: 0.9,
28 duration: 0.8,
29 stagger: 0.15,
30 ease: "power2.out",
31 },
32 slideInRight: {
33 opacity: 0,
34 x: 80,
35 duration: 1,
36 stagger: 0.1,
37 ease: "back.out(1.4)",
38 },
39 blur: {
40 opacity: 0,
41 filter: "blur(10px)",
42 duration: 0.8,
43 stagger: 0.12,
44 ease: "power2.out",
45 },
46
47 random: {
48 opacity: 0,
49 x: () => gsap.utils.random(-100, 100),
50 y: () => gsap.utils.random(-100, 100),
51 duration: 0.9,
52 stagger: 0.1,
53 ease: "power2.out",
54 },
55 };
56
57 gsap.from(wrapperRef.current.children, {
58 ...animationPresets[effect],
59 scrollTrigger: {
60 trigger: wrapperRef.current,
61 start: "top 85%",
62 },
63 });
64 },
65 { scope: wrapperRef, dependencies: [effect] },
66 );
67
68 return <div {...props} ref={wrapperRef} />;
69};

What it pulls in

npm packages

  • gsap
  • @gsap/react

Files it writes

  • components/gsap/stagger-on-scroll.tsx

Facts

Registry
PaceUI GSAP
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-01
Last confirmed
2 days ago

Go to the source

Docs on PaceUI GSAP gsap.paceui.com paceui/gsap on GitHub Raw registry item This item as JSON

More from PaceUI GSAP

All 29 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Modal Ability Selectorai-modal-ability-selectorPaceUI GSAPComponentsFree2 deps
Modal Selectorai-modal-selectorPaceUI GSAPComponentsFree2 deps
Response Writerai-response-writerPaceUI GSAPComponentsFree2 deps · 2 files
AI Suggestionsai-suggestionsPaceUI GSAPComponentsFree2 deps
Modal Ability Selectorai-token-counterPaceUI GSAPComponentsFree2 deps
Animated Stackanimated-stackPaceUI GSAPComponentsFree2 deps
Bouncing Textbouncing-textPaceUI GSAPComponentsFree2 deps
Dot Flowdot-flowPaceUI GSAPComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex