Home › Forums › JavaScript › Bootstrap parallax site..need JavaScript for window height › Reply To: Bootstrap parallax site..need JavaScript for window height
May 19, 2014 at 9:39 am
#170604
Participant
In jQuery, you can use this: $(window).height();
to get the viewport height.
From there, you can set the height of your .hero
something like this:
var viewport = $(window).height();
$('.hero').height(viewport);