Skip to content

Instantly share code, notes, and snippets.

@Ourelius
Last active August 29, 2015 14:26
Show Gist options
  • Save Ourelius/6a4821290afcbfecb664 to your computer and use it in GitHub Desktop.
Save Ourelius/6a4821290afcbfecb664 to your computer and use it in GitHub Desktop.
Fullheight Container from Top to Bottom (equal Browserheight)
/***
Startimage Fullheight
***/
$(document).ready(function(){
if( $('.fullheight').length > 0 ){
var winHeight = $(window).height();
var fullheight = $('.fullheight');
fullheight.css({ 'height' : winHeight + 'px' });
$('.slide-button').on('click', function () { // Trigger
$('body').delay(300)
.animate({
'scrollTop': winHeight
}, 1000);
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment