-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
I'm new to web frontend and really like this responsive navbar implementation but I notice an unncessary translation of the RightNav component when we adjust the browser width at the breakpoint.
The way to reproduce this is - Close the RightNav (if open) and adjust the browser width around the breakpoint (ie., 768px). We notice that the RightNav translates even though it is closed.
So I understand that the translation is causing this but it is needed -
| transform: ${({ open }) => open ? 'translateX(0)' : 'translateX(100%)'}; |
I tried to play around with visibility and opacity which does not seem to work, whereas display works but it overrides the transition we have. So I dont know the severity (chances of people actually encountering this one) but any way to avoid this ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels