-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add html class after all assets are loaded for a page #423
Comments
@oliverfoster Per your comments, I was going to add this to However, Would it be better to update those other locations (ex. Language Picker) so that they always hide the loading screen via the router methods? Or should I look into your other suggestion about adding this to |
🎉 This issue has been resolved in version 6.40.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Subject of the enhancement
To help with the timing of CSS animations, it would be useful to have an
html
class that indicates when all assets have been loaded for a page.Use case
I want to animate the title element as soon as the page is loaded and the loading screen is removed. There is currently not a way to know when the loading screen is removed, so it's difficult to know when the animation should be triggered. For instance, there is a chance that the animation is triggered while the loading screen is still overlapping the content, so the animation will never be seen. With a new class like
page-view-ready
, I can do the following:page-view-ready.mp4
The text was updated successfully, but these errors were encountered: