-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Navigation: Try adding minimal animation to overlay. #43851
Conversation
Size Change: +426 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
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.
This looks good to me ✨
It seems fine to me as well. |
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.
Nice! LGTM 👍
🙏 |
Thanks. It looks great, but isn't the fade out option missing when the menu closes? |
That's a good idea. I'll create a followup PR to add that. |
I think in this animation it's better to use transformation This is just a suggestion, but I have CSS performance in mind. |
I'll keep that in mind for the PR! |
Alright, I created #44082 as a followup to this one to use translate. I did experiment with a fade-out animation, but of course this was not as trivial as I had thought it to be, because the way the modal closes at the moment, the entire overlay is gone before any animation has a chance to fire. So without a bigger refactor I couldn't immediately see a way to do that. @Gierand, if you have an idea for how to do it, or if you're even able to make a PR, I'd be happy to review it or follow up. |
@jasmussen, when there is |
Yes indeed, and from those options it sounds like JS would need to be the solution in order to maintain accessibility. I definitely think we'll get to that, but probably not in the near term. |
What?
Fixes #43524.
This PR does two things:
The animation is fast, 0.1s, in order for it to feel generic and actionable, but still intentional. It's hard to see in this GIF:
Here's a video variant with hopefully better framerate:
Screeny.Video.5.Sep.2022.at.12.29.45.mov
Testing Instructions
Insert a navigation menu, ensure it collapses to an overlay. Open the overlay and test that it animates upwards and fades in.