I put the slider inside the modal and it not works.
One strange thing i notice, i only have 2 slides, one red, one blue, but when i publish the site, he automatically inserts one more slide. Strange.
Looks like this is happening because the modal is set to display: none when the page loads, and the Slider is unable to update its layout when it is hidden.
You can fix this by adding this code just after your call to fadeIn():
Webflow.require('slider').redraw();
And it should redraw the slider before it comes into view.
Alllllright lets get back to this one! So I take it we should substitute “Slider” with whatever class we have given our slider. Also, copy pasting the code you have posted above and that code only seems to not suffice? Are there any potential closing tags that should be added at the end of that script above to make it work?
Just FYI, I had the same issue while using JQuery to dynamically load slider content inside home page.
Calling Webflow.require('slider').redraw(); upon successful load() fixed the issue.