Hi,
here is a screencast of the website I’m designing. Initial states are not working for Chrome, in Safari is almost working. In the video you can check how the content of the page is displayed for a fraction of a second before the loader appears. Your help will be very appreciated as this problem has been with me since interactions 2.0. Thank you!
I’ve reported this to the team and we will look into this more to see if this is a bug or not. I was able to get the interaction to work correctly, so it may be that the Show Page animation was interfering with the the Start Loader animation.
To resolve this, you can edit the Start Loader animation. First, you can make each loader line a class based interaction, and then added two more animations to the end.
Hi @Brando, thank you very much for your response. Sorry for the delay saying thanks, I’ve been busy with some client work. I’m going to try what you describe and will let you know how it goes.
@Brando , I’ve been checking your answer and I think I might be not explaining myself quite well.
Being that Start Loader a looped animation, it doesn’t make sense for me to add those two steps at the end of it. I want the loader-lines to be animated as long as the page takes to load. Once the page is loaded, fade out the loader-screen to show the content beneath it. Hope it makes sense.
As well, I don’t how your solution can make the initial state to work properly as it stills take a fraction of a second for that loader-screen to change from display:none to display:flex when the page loads. Meaning that the content is seen before the loader shows.
I could set loader-screen to display:flex directly in the designer but this would mean turning it to display:none everytime I want to work on the project, as loader-screen is a fixed div on top of the actual content.
I don’t know if you can see in your Chrome browser the content of the page for a fraction of a second before the loader starts its animation.
Anyway, thank you very much for your effort and would be great if you could keep looking into this.
Thanks for responding here and that extra information helps explain the issue - thank you!
The steps I recommended above are definitely a workaround for the time being. Basically this will allow a preloader animation to still work for a predetermined amount of time. The only difference is the animation will stop after X amount of time regardless of if the page is loaded so this is definitely a workaround rather than a solution.
Regarding initial states - I couldn’t reproduce that in a new site. After testing more with your site, it looks like this issue is associated with your custom CSS:
I removed the custom code. On chrome’s incognito mode, the initial state works as expected. I don’t know why in normal mode the content still appears for a fraction of a second before the loader starts its animation.
Anyway, I’m happy seeing that the initials state work at least in incognito mode.