-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
45 lines (42 loc) · 1.15 KB
/
app.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
// gsap animation properties
gsap.fromTo('.overlay', { ease: 'elastic' }, { width: '100%', duration: 2 });
gsap.fromTo(
'.navbar',
{ opacity: 0, y: 20, ease: Expo.easeInOut },
{ delay: 2.5, duration: 1.5, opacity: 1 }
);
gsap.fromTo(
'.navbar',
{ opacity: 0, y: 20, ease: Expo.easeInOut },
{ delay: 2.5, duration: 1.5, opacity: 1 }
);
gsap.fromTo(
'.social-item',
{ opacity: 0 },
{ delay: 2.8, opacity: 1, x: 30, duration: 2, ease: Expo.easeInOut }
);
gsap.fromTo(
'.block-lg h1 .hidetext',
{ y: '100%', opacity: 0 },
{ duration: 1.5, delay: 1.6, y: '0', opacity: 1, ease: Expo.easeInOut }
);
gsap.fromTo(
'.block-lg p .hidetext',
{ opacity: 0 },
{ duration: 2, delay: 2, opacity: 1, ease: Expo.easeInOut }
);
gsap.fromTo(
'.block-sm p',
{ y: '100', opacity: 0 },
{ duration: 1.5, delay: 2.3, y: '10', opacity: 1, ease: Expo.easeInOut }
);
gsap.fromTo(
'.block-sm',
{ opacity: 0 },
{ duration: 1.5, delay: 2.3, opacity: 0.9, ease: Expo.easeInOut }
);
gsap.fromTo(
'.block-xs',
{ y: '-200', opacity: 0 },
{ duration: 2, delay: 2.7, y: '0', opacity: 1, ease: Expo.easeInOut }
);