Skip to content

Instantly share code, notes, and snippets.

@anneallen
Created June 11, 2014 19:05
Show Gist options
  • Save anneallen/3e4e760434dd79fe9977 to your computer and use it in GitHub Desktop.
Save anneallen/3e4e760434dd79fe9977 to your computer and use it in GitHub Desktop.
Jquery bumper snippet
//Snippet for make bumper screenheight -200px
jQuery(function ($) {
$('.bumper') .css({'height': ($(window).height()-200)+'px'});
$(window).resize(function(){
$('.bumper') .css({'height': (($(window).height()-200))+'px'});
});
/* You can safely use $ in this code block to reference jQuery */
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment