Last active
August 29, 2015 14:26
-
-
Save Ourelius/6a4821290afcbfecb664 to your computer and use it in GitHub Desktop.
Fullheight Container from Top to Bottom (equal Browserheight)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** | |
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