Often I visit websites where the background-image fits perfectly into my viewport size. When you scroll.. the next section fits perfectly into the viewport too
As a reference use this url
It does not matter whether I am using a 18' monitor or a 21' inch
Checking the source code I found this:
<section class="slide" style="height: 939px;"> .... </section>
<section class="slide" style="height: 939px;"> .... </section>
<section class="slide" style="height: 939px;"> .... </section>
Somehow they managed to capture my viewport height and adjust each section dynamically.
Is it right to assume that upon page load they perform some window.height and then dynamically set height of each section to that value or is there some utility that does this automatically ?