-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
60 lines (56 loc) · 1.26 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
60
$(document).ready(() => {
$('#hamburger-menu').click(() => {
$('#hamburger-menu').toggleClass('active')
$('#nav-menu').toggleClass('active')
})
// setting owl carousel
let navText = ["<i class='bx bx-chevron-left'></i>", "<i class='bx bx-chevron-right'></i>"]
$('#hero-carousel').owlCarousel({
items: 1,
dots: false,
loop: true,
nav:true,
navText: navText,
autoplay: true,
autoplayHoverPause: true,
autoplayTimeout:6000
})
$('#top-movies-slide').owlCarousel({
items: 2,
dots: false,
loop: true,
autoplay:true,
margin:15,
autoplayTimeout:4000,
responsive: {
500:{
items:3
},
1100:{
items:4
},
1600:{
items:6
}
}
})
$('.movies-slide').owlCarousel({
items: 2,
dots: false,
margin:15,
loop: true,
nav: true,
navText: navText,
responsive: {
500:{
items:3
},
1100:{
items:4
},
1600:{
items:6
}
}
})
})