-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.js
67 lines (55 loc) · 1.25 KB
/
custom.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
61
62
63
64
65
66
67
(function ($) {
"use strict";
$(document).ready(function() {
$('select').niceSelect();
});
// menu fixed js code
$(window).scroll(function () {
var window_top = $(window).scrollTop() + 1;
if (window_top > 50) {
$('.main_menu').addClass('menu_fixed animated fadeInDown');
} else {
$('.main_menu').removeClass('menu_fixed animated fadeInDown');
}
});
$('.img_gallery').magnificPopup({
type: 'image',
gallery:{
enabled:true
}
});
$('.grid').masonry({
itemSelector: '.grid-item',
columnWidth: '.grid-sizer',
});
$('.single_service_part').hover(
function(){$(this).addClass('active')},
function(){$(this).removeClass('active')}
)
// $('.single_service_part').hover(function(){
// $('.single_service_text').removeClass('active');
// $('.single_service_text').addClass('active');
// });
var review = $('.client_review_part');
if (review.length) {
review.owlCarousel({
items: 2,
loop: true,
dots: true,
autoplay: true,
autoplayHoverPause: true,
autoplayTimeout: 5000,
nav: false,
margin: 20,
responsive:{
0:{
items:1,
dots: false
},
600:{
items:2,
}
}
});
}
}(jQuery));