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
Feature Proposal: allowed animations #3
Comments
The explainer mostly discusses CSS-defined animations. I am reviving this thread to get insights into expansion of the feature to do even more.
|
That link is broken. Did you mean https://github.com/WICG/feature-policy/blob/master/policies/animations.md? |
I hope this doesn't become mandatory, and maybe not even recommended. Hardware acceleration can be a bit of a cargo cult. It's usually more performant to composite than to repaint, but that's not universally true. For instance, I've tried to implement a 9-patch composited resize, but just tweening width and height on a single element seems to be faster. It seems that, like all other web development, the best results come from trying things and measuring the results. |
Yes, the same explainer document. Thanks for the feedback. Interesting point! I don't think it will become "mandatory" by any means, but it can be come a customizeable feature where a certain set of enabled/disabled animations are recommended. Understandable the recommended set should contain the changes which could to lead to noticeable (positive) changes. I should mention that the explainer is a first draft and as hinted at the end of the document, the intention is to have this feature implemented as parameterized feature. So the developers should be able to turn on and off certain types of animations and run the measurements and decide what works best for them. Ideally, one could block changing |
FWIW, I'd be interested in only allowing animations if the user hasn't explicitly expressed that they do not want animations/motion, i.e. Edit: Maybe Client-Hints (specifically https://github.com/WICG/ua-client-hints?) could solve this, as authors could just respond with a different Feature-Policy based on the media query condition? Instead of (somehow) baking user-preferences into this policy, which would only make this more complex. |
See the explainer.
The text was updated successfully, but these errors were encountered: