-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CSS is loaded after the slides are rendered. You can see the whole content of the slides before the CSS kicks in and distributes it properly over the other slides #39
Comments
Please help me 👍 |
here you can see a screenshot... |
A quick fix would be, setting |
Thank you. I appreciate your work and I tried the quick fix but it didn't have an effect. The behaviour didn't change. What I am also trying to achieve is to animate the transform:translate a little bit with ease-in-out. But it would be even better if I had a currrentSlide Class for the proper styling. Is it possible to add a currentSlide Css-Class so I can only show the currentSlide. Here is a great example, where a new slide is fading in with an animation |
I have just found the is-active class in your code :-) |
setting the opacity of .hooper to 0 also shows the initial loading of the components. |
If you’re using webpack in development mode, it will inject the CSS in javascript files, so the style will load after the page loads which will cause flickering for sure. Try to extract CSS files (run webpack in production mode) and please give me the feedback with the results. For opacity method (which I recommend) it will not work until the following release, when the ‘loaded’ event is available. |
Looks like you are right. I don't get the same flickering behaviour if I run it in production mode. I am sorry I havent thought about that. Thank you for your help though. Concerning the loaded event, don't we already have an @Updated emit event which would be very similar to a loaded event, sort of? |
Yes, you can use |
you can now use |
Hi, One idea is that Hooper hide yourself (or only your slides) before was loaded (on same moment of the |
CSS is loaded after the slides are rendered. You can see the whole content of the slides before the CSS kicks in half a second later and distributes it properly over the other slides.
The text was updated successfully, but these errors were encountered: