-
Notifications
You must be signed in to change notification settings - Fork 497
Expand file tree
/
Copy pathGsapStagger.jsx
More file actions
48 lines (42 loc) · 1.67 KB
/
GsapStagger.jsx
File metadata and controls
48 lines (42 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
const GsapStagger = () => {
// TODO: Implement the gsap.stagger() method
return (
<main>
<h1>GsapStagger</h1>
<p className="mt-5 text-gray-500">
GSAP stagger is a feature that allows you to apply animations with a
staggered delay to a group of elements.
</p>
<p className="mt-5 text-gray-500">
By using the stagger feature in GSAP, you can specify the amount of time
to stagger the animations between each element, as well as customize the
easing and duration of each individual animation. This enables you to
create dynamic and visually appealing effects, such as staggered fades,
rotations, movements, and more.
</p>
<p className="mt-5 text-gray-500">
Read more about the{" "}
<a
href="https://gsap.com/resources/getting-started/Staggers"
target="_blank"
rel="noreferrer noopener nofollow"
>
Gsap Stagger
</a>{" "}
feature.
</p>
<div className="mt-20">
<div className="flex gap-5">
<div className="w-20 h-20 bg-indigo-200 rounded-lg stagger-box" />
<div className="w-20 h-20 bg-indigo-300 rounded-lg stagger-box" />
<div className="w-20 h-20 bg-indigo-400 rounded-lg stagger-box" />
<div className="w-20 h-20 bg-indigo-500 rounded-lg stagger-box" />
<div className="w-20 h-20 bg-indigo-600 rounded-lg stagger-box" />
<div className="w-20 h-20 bg-indigo-700 rounded-lg stagger-box" />
<div className="w-20 h-20 bg-indigo-800 rounded-lg stagger-box" />
</div>
</div>
</main>
);
};
export default GsapStagger;