You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
i have a problem with slider and height.
If i initialize the slider in the document.ready, the slider will have height 0px the first time i load the page.
If i initialize the slider in window.load, it works but for an instance i will see all the slide in a column.
What is the best practice for that?
Thank you
The text was updated successfully, but these errors were encountered:
Presumably you would see all the slides in a column if the javascript fails to load so that is your starting point.
Ordinarily you would want all the slides to be visible for accessibility reasons.
However if you want the content to be hidden, I add a class of "unflickity" to the parent element of the slides which is removed before flickity is activated and has this CSS:
Hi all,
i have a problem with slider and height.
If i initialize the slider in the document.ready, the slider will have height 0px the first time i load the page.
If i initialize the slider in window.load, it works but for an instance i will see all the slide in a column.
What is the best practice for that?
Thank you
The text was updated successfully, but these errors were encountered: