-
Notifications
You must be signed in to change notification settings - Fork 0
/
gsapIdeasPost.js
56 lines (50 loc) · 896 Bytes
/
gsapIdeasPost.js
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
49
50
51
52
53
54
55
56
function pageTransitionIdeas() {
var tl_ideasPost = gsap.timeline();
tl_ideasPost.from(".section-one-post", {
duration: 1.0,
translateY: "-100%",
opacity: 0,
delay: 0.1,
ease: "power2.out"
});
tl_ideasPost.from(".h3-post", {
duration: 0.5,
translateX: -50,
opacity: 0,
delay: 0.5,
ease: "power2.out"
});
tl_ideasPost.from(
".paragraph-post",
{
duration: 0.5,
translateX: -50,
opacity: 0,
delay: 0.5,
ease: "power2.out"
},
"<"
);
tl_ideasPost.from(
".tag-post",
{
duration: 0.5,
translateX: -50,
opacity: 0,
delay: 0.5,
ease: "power2.out"
},
"<"
);
tl_ideasPost.from(
".col-two-post, .col-three-post",
{
duration: 1.0,
opacity: 0,
delay: 0.3,
ease: "power2.out"
},
"<"
);
}
pageTransitionIdeas();