Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

onInit setting height to 100vh #91

Open
devWaleed opened this issue Sep 6, 2017 · 0 comments
Open

onInit setting height to 100vh #91

devWaleed opened this issue Sep 6, 2017 · 0 comments

Comments

@devWaleed
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant