You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you open a header dropdown menu for the first time, the menu opens with a nice slide down (transform translateY) + fade in (opacity) animation.
When closing the menu, the menu instantly disappears, with no animation.
When opening the menu again, the menu sometimes opens with animation, and sometimes without.
Describe the expected behavior
The menu should always open/close with animation.
Version information (Dawn, browsers and operating systems)
Dawn Version: 7.0.1
Chrome Version 108.0.5359.124
macOS Version 13.1
Possible solution
I believe the issue lies with animateMenuOpen animation paired with animation-fill-mode: forwards;.
Describe the current behavior
When you open a header dropdown menu for the first time, the menu opens with a nice slide down (transform translateY) + fade in (opacity) animation.
When closing the menu, the menu instantly disappears, with no animation.
When opening the menu again, the menu sometimes opens with animation, and sometimes without.
Describe the expected behavior
The menu should always open/close with animation.
Version information (Dawn, browsers and operating systems)
Possible solution
I believe the issue lies with
animateMenuOpen
animation paired withanimation-fill-mode: forwards;
.If I replace that with:
It works perfectly.
I understand there's more to it (
prefers-reduced-motion
etc.), so I'm not sure what's the best solution that works for everyone.Perhaps this would suffice:
Additional context/screenshots
Latest Dawn theme from Shopify Theme store (I didn't check on latest
main
branch):Screen.Recording.2023-01-13.at.16.13.04.mov
The text was updated successfully, but these errors were encountered: