$('#preloader').height($(document).height()); $(function() { $('.slider').unslider({ speed: 1000, delay: 5000, complete: function() {}, pause:false, keys: false, dots: false, fluid: true, fade: true, autoplay: true }); }); /***********************************************/ jQuery(window).on('load',function() { $('.rezlink').fadeOut(1); }); $('.topBut').click(function(){ $('html, body').stop(true).animate({scrollTop:0}, 600, 'easeOutExpo'); }); $('.topBut').mouseover(function(){ $(this).stop(true).animate({ backgroundSize: "40%" }, 100)}).mouseout(function(){ $(this).stop(true).animate({ backgroundSize: "30%" }, 100); }); $('.buttonY').mouseover(function(){ $(this).stop(true).animate({ backgroundColor: "#e88e00" }, 200)}).mouseout(function(){ $(this).stop(true).animate({ backgroundColor: "#f9b000" }, 200); }); $('.backButton').mouseover(function(){ $(this).stop(true).animate({ backgroundColor: "#e88e00" }, 200)}).mouseout(function(){ $(this).stop(true).animate({ backgroundColor: "#f9b000" }, 200); }); $('.buttonG').mouseover(function(){ $(this).stop(true).animate({ backgroundColor: "#000" }, 200)}).mouseout(function(){ $(this).stop(true).animate({ backgroundColor: "#3c3c3c" }, 200); }); $('.produkt').mouseover(function(){ $(this).find('.rezlink').stop(true).fadeIn(200)}).mouseout(function(){ $(this).find('.rezlink').stop(true).fadeOut(200); });