0
0
mirror of https://github.com/skyrisk/brazucaplay.git synced 2024-11-23 14:46:13 +00:00
brazucaplay/pages/js/custom.js
2020-05-21 18:17:02 -03:00

32 lines
732 B
JavaScript

/* jQuery Pre loader
-----------------------------------------------*/
$(window).load(function(){
$('.preloader').fadeOut(1000); // set duration in brackets
});
$(document).ready(function() {
/* Back top
-----------------------------------------------*/
$(window).scroll(function() {
if ($(this).scrollTop() > 200) {
$('.go-top').fadeIn(200);
} else {
$('.go-top').fadeOut(200);
}
});
// Animate the scroll to top
$('.go-top').click(function(event) {
event.preventDefault();
$('html, body').animate({scrollTop: 0}, 300);
})
/* wow
-------------------------------*/
new WOW({ mobile: false }).init();
});