-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-init slider after window change on Siema 1.5 #134
Comments
Hi. This is true, when windows changes it's size it does reinit. It cause a little bit of a paint, but it is needed to recalculate Thanks |
The problem is serious because even if you turn off the "loop = false", if you change the size of the window, the carousel is still displaying badly and there is no longer any beautiful animation to reduce and adjust the slider. I wonder how the carousel will behave when on the tablet in vertical will be 2 sliders and in horizontal 1 .. what will happen after changing the orientation of the tablet, the carousel will damage? :( How can I "re-init" whole carousel after window resized ends ? |
Can you create a CodePen for me when the "carousel is still displaying badly" please ? I cannot see this issue at all. It rebuilds the markup and place all the element in the same place, it shouldnt affect carousel visually much. |
Yea sure, here : https://codepen.io/modweb_pl/pen/oEeJex |
You probably forgot about something. Can you add your CSS and markup please? i cannot see anything without it. |
CodePen updated: https://codepen.io/modweb_pl/pen/oEeJex |
btw. with this CSS/JS setup everything works like a charm in 1.4.13. Markup's creates by javascript in prototype method: setBaseClasses, setPagination & updatePagination |
I still can't see a thing. Can you provide a working CodePen example please? |
Working example: https://codepen.io/modweb_pl/pen/oEeJex |
I see the issue now. Thanks for example. Expect a fix very soon! Sorry about it!!! |
Thanks a lot! I can't even imagine, how i could work without "Siema carousel" = ) |
No worries. Thanks for quick reaction and helping me to find a critical bug. Hopefully you like the things introduced in new 1.5. I mentioned your username on release page — hopefully you don't mind. Thanks again and have a nice day 👋 |
No problem, thx for quick update. Know I notice some strange things, on init the main div have class: ".slider__list" and after change the size of window class was removed and I don't know why ? I need to do a little "hack" for my project like this: .slider { when originally div:first-of-type have class ".slider__list" and of course I need to add class ".slider" to parent node of carousel =) I don't know if it's a little bug? |
Hi again. This is highly expected. The div that your are applying class rebuilds every time when you change width of your browser. Ideally you shouldn't apply any styling to it. I cannot see your project in front of me so it is difficult for me to predict if you need it or not. Essentially avoid adding a custom styling to this element. Let Siema do the job and you style your inner elements. |
Well ok, display: flex + height: 100% fix everything ;) I make a little refactor of my code and now "dots" pagination works like a charm ; ). |
Some users complained for transitions on windows resize se it has been ditched. Personally I don't think it matters that much — majority of web users don't fiddle around with the size of a browsers. We, web developers do :-) |
Yeap, it's truth ;) |
Hey just wanted to jump in here as well. I have a Siema carousel of YouTube videos. Unfortunately, the newer releases of Siema cause my YouTube videos (YouTube iFrame API) to completely rebuild/restart every time the window is resized. Downgrading to 1.4.1 resolves this issue. |
Hi. This is expected behavior of Siema 1.5 @bretmorris. New siema comes with a If this is an improvement that you would be after — I 'm more than happy to develop this feature to the next release. Thanks for reporting and have a great day pals 🥑 |
@pawelgrzybek yeah would be great if it only happened when |
Hello,
After update to 1.5 version infinite loop works like a charm but they need "reinit" slides after window change (on 1.4 I can change the window and slider works good).
The text was updated successfully, but these errors were encountered: