kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.47k stars 5.89k forks source link

Responsive Height with a fixed header and footer #3186

Open javimata opened 6 years ago

javimata commented 6 years ago

Hi, i need create a responsive slider, this live in a web with a fixed header and a fixed footer, i need the slide show a variable width images and the height most be responsive and show 2 or more slides.

I need some link https://wendellburnettearchitects.com/ but using a slider in the content section, i do it but the height don't are responsive, need some like this:


| HEADER |

SLIDER

| FOOTER |

Thanks so much

javimata commented 6 years ago

well, for the moment solve it with this:

` $(window).on('load', function(){

    alto = $( window ).height();
    $('.slick-slide img').height(alto - 140);

});

$(window).on('resize', function(){

    alto = $( window ).height();
    $('.slick-slide img').height(alto - 140);

});

`