-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
38 lines (32 loc) · 942 Bytes
/
index.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
anime({
targets: '.photo',
scale: [
{value: .1, easing: 'easeOutSine', duration: 900},
{value: 1, easing: 'easeInOutQuad', duration: 1200}
],
delay: anime.stagger(200, {grid: [14, 5], from: 'center'})
});
anime({
targets: '.home-button, .book-link, .about-h3',
scaleY: [
{ value: [1, 1], duration: 1200 },
{ value: 2, duration: 50, delay: 1000, easing: 'easeOutExpo' },
{ value: 1, duration: 900 },
{ value: 1.75, duration: 50, delay: 1000, easing: 'easeOutExpo' },
{ value: 1, duration: 900 }
],
easing: 'easeOutElastic(1, .8)',
loop: true
});
anime({
targets: '.about-img',
scaleX: [
{ value: [1, 1], duration: 1200 },
{ value: 2, duration: 50, delay: 1000, easing: 'easeOutExpo' },
{ value: 1, duration: 900 },
{ value: 1.75, duration: 50, delay: 1000, easing: 'easeOutExpo' },
{ value: 1, duration: 900 }
],
easing: 'easeOutElastic(1, .8)',
loop: true
});