Ideal-Image-Slider-JS icon indicating copy to clipboard operation
Ideal-Image-Slider-JS copied to clipboard

onInit setting height to 100vh

Open devWaleed opened this issue 8 years ago • 0 comments

I am trying to set height of parent container 'slider' to 100vh on init and it won't work.

    var slider = new IdealImageSlider.Slider({
        selector: '#slider',
        transitionDuration: 0,
        disableNav: true,
        interval: 5000,
        onInit: function()
        {
            $('#slider').css('height', '100vh');
        },
        afterChange: function()
        {
            $('#slider').css('height', '100vh');
        }
    });

However it works on afterChange and other events. I can't set it with css either.

devWaleed avatar Sep 06 '17 15:09 devWaleed