-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Stop logo clashing when pinwheel animates #35564
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
Stop logo clashing when pinwheel animates #35564
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
|
|
I think what would help to evaluate this change (not by me - I am pretty far from UI) is if you add some recorded videos before and after. It might be that what you see is somewhat result of your browser configuration and showing what you mean would be good to avoid wrong assumptions. Also showing effect of your change would greatly help in explaining what you really achieved with it. |
Great idea, thank you. I've added a before and after video to the description above. |
Nice. I like it. I wonder what our UI team will say - but it looks rather cool. |
| .navbar-brand:hover .brand-logo-pinwheel { | ||
| transform-origin: 17.66px 17.66px; | ||
| animation: pinSpin 1.5s linear; | ||
| animation: pinSpin 1.5s linear infinite; |
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.
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 mention in the second paragraph of the description why I think removing infinite spin was not the right action to take away from issue #34019
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.
Okay, thanks, sorry missed reading that 😐
|
Maybe just move "Airflow" over a bit so that doesn't need to start moving too? In the "after" video it feels a bit jarring imo. |
Now we are talking design :D |
|
(and agree - when you move out the mouse, this is really disturbing when it suddenly goes back to start) |
|
Figured I'd weigh in since I was the one who originally added this animation… The overlap was certainly something I noticed when implementing. I didn't increase the spacing between the word and pinwheel as I didn't want to alter the official brand logo, and I still don't believe we should. This was meant as a little Easter Egg interaction to add some fun to the UI. While I think this is a slick implementation, I think it is taking it a bit too far, and I'd advocate for removing the animation all together over making the animation more complex. |
|
I agree with Ryan, this was mainly an Easter Egg. I don't know if we want to mess with the logo too much. Can we double check everywhere else we use the Airflow SVG? |
@bbovenzi I've had a look at the code base again and there is no other use of the logo as an SVG other than this one (in navbar.html). All the other uses of the logo use a png. |
Ok, let's just change the spacing between the pinwheel and the text then. I agree with Jed, I'm not a fan of the text shifting on hover. |
Damn... I knew I should never be a designer . |
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.
REquest changes so that it is not merged accidentally
|
How does something like this look? The downside to this option is it doesn't give as tight a connection between the logo pinwheel and the logo text, saying that, it doesn't disconnect it too much in my opinion. Screen.Recording.2023-11-15.at.20.50.22.mov |
Besides lagging the "Easter Egg" history I very much like the animation and would prefer to keep it. I am not a 100% designed but I treated the text shift as rather "cool" :-D But seems there are different opinions. The commit https://github.com/apache/airflow/assets/97813242/8f4f61d9-23ee-4553-a570-1ba758adb91a also looks good for me though. |
I agree. + 1 from me. |
|
|
||
| .navbar-brand:hover .brand-logo-antidivider { | ||
| width: 0; | ||
| transition: width 0.5s; |
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.
Is the width still animating? I'm happy with the tiny bit more spacing all the time.
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
When hovering over the Airflow logo in the top left, the pinwheel part of the logo cuts across the text part of the logo. This is (subjectively) poor design. In order to stop this from happening, while keeping the pinwheel animation, this PR has:
I have also set the pinwheel animation back to infinite. In my opinion, having read the discussion that resulted in the change, it was not the correct decision to switch the animation from infinite over hover to 1.5 seconds. Another change was made, to allow users with a 'prefers-reduced-motion' preference to not have the animation playing, was the correct change, and did not need a further change to the length of time the pinwheel animates for.
This is a design change, which is always subjective, so totally understand if review wants to bin this. Also sorry in advance for anything bad I've done; it's my 1st PR, I promise to do better next time.
Video demonstrating change:
Before
282189311-b7d3e49c-4f5a-4bce-9345-5eb6f167457b.mov
After
282189199-da437bef-4b94-448f-85ee-78c41667eaf7.mp4