-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Remove infinite animation for pinwheel, spin for 1.5s #34020
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
Remove infinite animation for pinwheel, spin for 1.5s #34020
Conversation
f834ff2 to
2870e85
Compare
potiuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc: @bbovenzi @pierrejeambrun -> WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this animation back before the 2.0 release. This PR works as described.
A further accessibility enhancement that could be considered would be wrapping the the whole thing in a media query so it doesn't animate at all for folks who have prefers-reduced-motion enabled in their browsers.
@media ( prefers-reduced-motion: no-preference ) {
.navbar-brand:hover .brand-logo-pinwheel {
transform-origin: 17.66px 17.66px;
animation: pinSpin 1.5s linear;
}
}|
Thank you @ryanahamilton . This looks amazing and I think is a good win-win :) Basically the gif is not showing my cursor, but througout the gif except from changing the reduced motion to on/off I was hovering over the spinwheel. |
3718a57 to
d8d25b3
Compare
ryanahamilton
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @pankajkoti!
|
Cool. It's cool to know the "preferred-reduce-motion" exists. @mj-dd -> you might also see that for the future. It's very interesting read actually https://www.tpgi.com/short-note-on-prefers-reduced-motion-and-puzzled-windows-users/ - where seems that this setting for windows users for example is set automatically when they disabled animations for controls in Windows. Similarly in GTK/Gnome when you disable animation And it seems it's already implemented in most of the OS (and you can force it with about:config in chrome/firefox):
TIL |
* Remove infinite animation for pinwheel, spin for 1.5s * Use media query as per @ryanahamilton's suggestion * Fix static checks (cherry picked from commit f8a5c8b)

closes: #34019
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.