-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
feat(svg): animation alternative #317
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
Tested in Safari 17.3, the linear gradient does not animate. In Chrome 122.0.6261.94, this works reasonably well, |
Thanks @danilowoz for the PR This is working well for me in:
But it's not animating in:
|
@danilowoz According to https://stackoverflow.com/a/59932642, using I think we can detect IE, Safari by There's a proven, battle-tested way to check for Safari browser (both mobile and desktop) here |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I don't want to rely on the |
Maybe we can go for the
|
@danilowoz I think there're certain applications that would need to work well on Safari now. How about adding an optional Later once Safari adds support for This change will be straight-forward to make and will allow |
Found this article where in the accepted answer the author was able to make the |
Ok, I got it running on Safari. Turns out, the Considering deprecating the following props:
Another round of review? I try fixing tests meanwhile. |
Tried Chrome, Firefox, and Safari, and they all work as expected. Great job @danilowoz |
You crazy bro? 🥲 this is a full blown repo refactor XD |
My bad. Just saw a bunch of files, where I was expecting mostly 1 file changed. Nicely done, great job & thanks for the quick response. |
@danilowoz Works well for me in all browsers too, thanks!! |
All tests and build passed! I'm going to publish a new major version soon |
🎉 This PR is included in version 7.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This introduces a new approach to animate SVG gradients and work around the new chromium limitation.
BREAKING CHANGE: The
keyTimes
,gradientTransform
andanimateBegin
options have been removed.Preview: https://kn8w9s-6006.csb.app/?path=/story/react-content-loader--animate
Close #316