File: /home/vmasmheia229/domains/s148287.gridserver.com/htmlCHRIS/js/custom.js
/*Theme : narani
* Author : Design_mylife
* Version : V1.0
*
*/
// niceScroll
jQuery("html").niceScroll({
scrollspeed: 50,
mousescrollstep: 38,
cursorwidth: 7,
cursorborder: 0,
cursorcolor: '#72b6af',
autohidemode: false,
zindex: 9999999,
horizrailenabled: false,
cursorborderradius: 0
});
//sticky header on scroll
$(window).load(function() {
$(".sticky").sticky({topSpacing: 0});
});
//parallax
$(window).stellar({
horizontalScrolling: false,
responsive: true/*,
scrollProperty: 'scroll',
parallaxElements: false,
horizontalScrolling: false,
horizontalOffset: 0,
verticalOffset: 0*/
});
/*====flex slider for main slider on header2====*/
$('.main-slider').flexslider({
slideshowSpeed: 5000,
directionNav: false,
controlNav: true,
animation: "fade"
});
//owl carousel for work
$(document).ready(function() {
$("#work-carousel").owlCarousel({
// Most important owl features
items: 4,
itemsCustom: false,
itemsDesktop: [1199, 4],
itemsDesktopSmall: [980, 3],
itemsTablet: [768, 3],
itemsTabletSmall: false,
itemsMobile: [479, 1],
singleItem: false,
startDragging: true
});
});
//owl carousel for testimonials
$(document).ready(function() {
$("#testi-carousel").owlCarousel({
// Most important owl features
items: 1,
itemsCustom: false,
itemsDesktop: [1199, 1],
itemsDesktopSmall: [980, 1],
itemsTablet: [768, 1],
itemsTabletSmall: false,
itemsMobile: [479, 1],
singleItem: false,
startDragging: true
});
});
//owl carousel for full width image slider
$(document).ready(function() {
$("#full-img-slide").owlCarousel({
// Most important owl features
items: 1,
itemsCustom: false,
itemsDesktop: [1199, 1],
itemsDesktopSmall: [980, 1],
itemsTablet: [768, 1],
itemsTabletSmall: false,
itemsMobile: [479, 1],
singleItem: false,
startDragging: true
});
});
/* ==============================================
Counter Up
=============================================== */
jQuery(document).ready(function($) {
$('.counter').counterUp({
delay: 100,
time: 800
});
});
/* ==============================================
WOW plugin triggers animate.css on scroll
=============================================== */
var wow = new WOW(
{
boxClass: 'wow', // animated element css class (default is wow)
animateClass: 'animated', // animation css class (default is animated)
offset: 100, // distance to the element when triggering the animation (default is 0)
mobile: false // trigger animations on mobile devices (true is default)
}
);
wow.init();
//portfolio mix
$('#grid').mixitup();
/*========tooltip and popovers====*/
/*==========================*/
$("[data-toggle=popover]").popover();
$("[data-toggle=tooltip]").tooltip();