We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ce848c commit 36fd27fCopy full SHA for 36fd27f
pwa/hooks/con/useAnimation.tsx
@@ -6,8 +6,9 @@ import useIntersection from "hooks/useIntersection";
6
export type DirectionType = "bottom" | "left" | "right" | "top" | "scale";
7
8
const fadeIn = (element: gsap.TweenTarget, duration: number, delay: number) => {
9
- gsap.to(element, duration, {
+ gsap.to(element, {
10
opacity: 1,
11
+ duration,
12
x: 0,
13
y: 0,
14
scale: 1,
@@ -45,8 +46,9 @@ const fadeOut = (
45
46
x = animationValue || +100;
47
}
48
49
50
opacity: 0,
51
52
x,
53
y,
54
scale,
0 commit comments