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
Performance Improvement Hints (will-change) #537
Comments
If this has any relevance for you I may create a pull request and take over the work. |
To free the required resources we could also add a keyframe at 100% and set will-change back to auto
See Examples: https://developer.mozilla.org/en/docs/Web/CSS/will-change - auto is used to removeHint. |
Hi, I change the behavior a bit, because as of the spec: https://www.w3.org/TR/css-will-change-1/ will-change should be applied a short time before the animation actually starts. So what to do now is:
You can let away the hint - then the animation is handled like before. Here are the states: During the page rendering
On event (scroll, hover or what ever)
The hint can be removed on event but I think it is not required because the keyframe overrides it. |
interresting is it ; but with your second implementation approch it can make the animate.css usage too verbose. |
Well the hint is optional, so if you don't need a better performance you can let them away. If you face performance issue you can use them. It has to be a class for each animation, because every animation is using different css properties to be changed and because of the spec it should used wisely - that is the reason why I defined them for each animation class. |
@klopfdreh You have to put |
@equinusocio : It is always <animation_name>Hint as you can see in the commit |
I've got to agree with @equinusocio here. It'll probably confuse more than help the beginner users and it has a potential to harm performance or even cause browser crashing (run out of GPU memory). |
Hi,
I just read an article at developers.google.com about a new property which might improve the performance of the animations provided via animate.css.
So maybe it would be good "tell" the browsers what you are planing to do. Example:
References:
The text was updated successfully, but these errors were encountered: