-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
executable file
·59 lines (48 loc) · 1.18 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
$(document).ready(function(){
$('.single-item').slick({
dots: true,
infinite: true,
speed: 500,
fade: true,
cssEase: 'linear',
autoplay: true,
autoplaySpeed: 3000,
});
});
$(function(){
$('.send')
.on('mouseover', function(){
$('button').stop(true).animate({
borderWidth: '7px',
fontWeight: '600'
}, 300);
})
.on('mouseout', function(){
$('button').stop(true).animate({
borderWidth: '1px',
fontWeight: '200'
}, 300);
});
});
$('.ml2').each(function(){
$(this).html($(this).text().replace(/([^\x00-\x80]|\w)/g, "<span class='letter'>$&</span>"));
});
anime.timeline({loop: true})
.add({
targets: '.ml2 .letter',
scale: [4,1],
opacity: [0,1],
translateZ: 0,
easing: "easeOutExpo",
duration: 950,
delay: function(el, i) {
return 70*i;
}
}).add({
targets: '.ml2',
opacity: 0,
duration: 1000,
easing: "easeOutExpo",
delay: 1000
});