temporary

  • Show Comments

Your email address will not be published. Required fields are marked *

comment *

  • name *

  • email *

  • website *

jQuery(document).ready(function($) { var $banner = $('.banner'), $window = $(window); var $topDefault = parseFloat( $banner.css('top'), 10 ); $window.on('scroll', function() { var $top = $(this).scrollTop(); $banner.stop().animate( { top: $top + $topDefault }, 1000, 'easeOutCirc' ); }); var $wiBanner = $banner.outerWidth() * 2; function zindex(maxWidth){ if( $window.width() <= maxWidth + $wiBanner ) { $banner.addClass('zindex'); } else { $banner.removeClass('zindex'); } } });