-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
48 lines (42 loc) · 805 Bytes
/
main.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
// Scrollreveal = Animação ao descer e subir a pagina
const scrollReveal = ScrollReveal({
origin: 'top',
distance: '30px',
duration: 700,
reset: true
})
scrollReveal.reveal('#services .card', { interval: 300 })
const scrollRevealLeft = ScrollReveal({
origin: 'left',
distance: '60px',
duration: 700,
reset: true
})
scrollRevealLeft.reveal(
`#home .img-fluid,
#about .col,
.section-2 .col,
#whoWeAre .col,
#cta h1,
#contact .form-box
`,
{ interval: 300 }
)
const scrollRevealRight = ScrollReveal({
origin: 'right',
distance: '60px',
duration: 700,
reset: true
})
scrollRevealRight.reveal(
` #home .text,
#about .text,
.section-2 .text,
#cta .btn-cta,
#whoWeAre .text,
#cta .btn-cta,
#contact .map,
footer form
`,
{ interval: 300 }
)