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

onInit setting height to 100vh #91

@devWaleed

Description

@devWaleed

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions