Answer the question
In order to leave comments, you need to log in
Page langing dimensions?
Typically, a landing page consists of slides, each of which is the size of a screen.
Example: https://rocketbank.ru/
In addition, such pages are also adaptive.
How is the size of one slide calculated? With CSS or JS? Maybe there is a jQuery library for such purposes?
What do you advise?
Thank you in advance!
Answer the question
In order to leave comments, you need to log in
You can write a simple Js function that will calculate the height of the screen and assign it to a specific class
$(document).ready(function() {
$('.fullscreen').height($(window).height());
$(window).resize(function() {
$('. fullscreen').height($(window).height());
})
});
<div class="fullscreen">
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question