Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

[Bug] Old documentation about webkit & iOS14(ans less) #265

Open
Makio64 opened this issue Jul 11, 2024 · 0 comments
Open

[Bug] Old documentation about webkit & iOS14(ans less) #265

Makio64 opened this issue Jul 11, 2024 · 0 comments
Labels
Feature Feature request

Comments

@Makio64
Copy link

Makio64 commented Jul 11, 2024

Is your feature request related to a problem? Please describe.
I was reading the doc clarification : https://motion.dev/docs/improvements-to-the-web-animations-api-dx

And at the end of the page about the Webkit bug, it seems not updated :

[Webkit bugfixes](https://motion.dev/docs/improvements-to-the-web-animations-api-dx#webkit-bugfixes)
Unlike Firefox or Chrome, Webkit's implementation of WAAPI is still a little buggy.

Part of Motion One as a project is finding and filing bugs in WAAPI across all browsers, and where possible fixing them for users of the library. So far, we've filed a handful of bugs:

[Timing issues between accelerated and non-accelerated animations](https://bugs.webkit.org/show_bug.cgi?id=229399)

[Incorrect keyframe generation](https://bugs.webkit.org/show_bug.cgi?id=229398)

[WKWebView: Major delays for accelerated animations](https://bugs.webkit.org/show_bug.cgi?id=229403)

By using Motion One instead of WAAPI, you won't have to worry about shipping these bugs to users.
In regards specifically to the outstanding accelerated animation bugs, we've sadly made the choice to disable accelerated animations in Webkit until they're fixed.

You can still pass allowWebkitAcceleration to switch these back on:

animate(
  element,
  { transform: "translateX(100px)" },
  { allowWebkitAcceleration: true }
)
But if you choose to do so, we recommend testing such animations in iOS thoroughly, including Safari and Chrome iOS (as different bugs exist in each).

Already the "major delays" bug is fixed in iOS 15, and we'll keep an eye on OS adoption before enabling accelerated animations by default.

Current market share :
https://telemetrydeck.com/blog/ios-market-share-04-24/

Describe the solution you'd like
update doc about it

Describe alternatives you've considered
remove this from doc and support it by default.

@Makio64 Makio64 added the Feature Feature request label Jul 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature Feature request
Projects
None yet
Development

No branches or pull requests

1 participant