Current File : /home/tradevaly/demo.tradevaly.com.bd/content/Tradevaley Bootstrap project2/js/active.js |
$(document).ready(function(){
$('.toptrend-active').owlCarousel({
loop:true,
margin:0,
nav:true,
navText: ['<i class="fa fa-chevron-circle-left"></i>','<i class="fa fa-chevron-circle-right"></i>'],
responsive:{
0:{
items:1
},
600:{
items:2
},
1200:{
items:4
}
}
})
});
$(document).ready(function(){
$('.slider-active').owlCarousel({
loop:true,
margin:0,
nav:true,
navText: ['<i class="fa fa-chevron-circle-left"></i>','<i class="fa fa-chevron-circle-right"></i>'],
responsive:{
0:{
items:1
},
600:{
items:1
},
1000:{
items:1
}
}
})
});
var fixmeTop = $('.header-area').offset().top; // get initial position of the element
$(window).scroll(function() { // assign scroll event listener
var currentScroll = $(window).scrollTop(); // get current position
if (currentScroll >= fixmeTop) { // apply position: fixed if you
$('.header-area').css({ // scroll to that element or below it
position: 'fixed',
top: '0',
left: '0'
});
} else { // apply position: static
$('.header-area').css({ // if you scroll above it
position: 'static'
});
}
});