94 lines
2.3 KiB
JavaScript
94 lines
2.3 KiB
JavaScript
/*
|
|
CounterUp
|
|
========================================================================== */
|
|
jQuery(document).ready(function( $ ) {
|
|
$('.counter').counterUp({
|
|
time: 500
|
|
});
|
|
});
|
|
|
|
/*
|
|
MixitUp
|
|
========================================================================== */
|
|
$(function(){
|
|
$('#portfolio').mixItUp();
|
|
});
|
|
|
|
/*
|
|
|
|
Touch Owl Carousel
|
|
========================================================================== */
|
|
$(".touch-slider").owlCarousel({
|
|
navigation: false,
|
|
pagination: true,
|
|
slideSpeed: 1000,
|
|
stopOnHover: true,
|
|
autoPlay: true,
|
|
items: 1,
|
|
itemsDesktopSmall: [1024, 1],
|
|
itemsTablet: [600, 1],
|
|
itemsMobile: [479, 1]
|
|
});
|
|
$('.touch-slider').find('.owl-prev').html('<i class="fa fa-chevron-left"></i>');
|
|
$('.touch-slider').find('.owl-next').html('<i class="fa fa-chevron-right"></i>');
|
|
|
|
/*
|
|
|
|
Back Top Link
|
|
========================================================================== */
|
|
var offset = 200;
|
|
var duration = 500;
|
|
$(window).scroll(function() {
|
|
if ($(this).scrollTop() > offset) {
|
|
$('.back-to-top').fadeIn(400);
|
|
} else {
|
|
$('.back-to-top').fadeOut(400);
|
|
}
|
|
});
|
|
$('.back-to-top').click(function(event) {
|
|
event.preventDefault();
|
|
$('html, body').animate({
|
|
scrollTop: 0
|
|
}, 600);
|
|
return false;
|
|
})
|
|
|
|
/*
|
|
One Page Navigation & wow js
|
|
========================================================================== */
|
|
jQuery(function($) {
|
|
//Initiat WOW JS
|
|
new WOW().init();
|
|
|
|
// one page navigation
|
|
$('.main-navigation').onePageNav({
|
|
currentClass: 'active'
|
|
});
|
|
});
|
|
|
|
jQuery(document).ready(function() {
|
|
|
|
$('body').scrollspy({
|
|
target: '.navbar-collapse',
|
|
offset: 195
|
|
});
|
|
|
|
$(window).on('scroll', function() {
|
|
if ($(window).scrollTop() > 200) {
|
|
$('.fixed-top').addClass('menu-bg');
|
|
} else {
|
|
$('.fixed-top').removeClass('menu-bg');
|
|
}
|
|
});
|
|
|
|
});
|
|
|
|
/* Nivo Lightbox
|
|
========================================================*/
|
|
jQuery(document).ready(function( $ ) {
|
|
$('.lightbox').nivoLightbox({
|
|
effect: 'fadeScale',
|
|
keyboardNav: true,
|
|
});
|
|
|
|
}); |