Is there a way to create a slide with jquery that occupies 100% of the screen?

-1

How to create a slide with Jquery that occupies 100% of the screen? It's to make an animated footer with thumbnails of images.

    
asked by anonymous 14.07.2015 / 22:28

1 answer

1

Yes, just set the width and height of the elements to the width and height of the window:

$('#slider').width( $(window).width() )
            .height( $(window).height() );

Note: If the window is not maximized, when the user maximizes it, the elements will be the same as the previous width, you can correct this with the resize event, by the sizes inside it:

$(window).resize(function(e){ \*Código Aqui*\ }).resize(); 

Note²: The .resize() at the end of the statement is for the code to run as soon as the page loads.

    
14.07.2015 / 22:32