Skip to content

fix(ux): resolve broken mobile sidebar close transition by transitioning visibility#1452

Open
KRUSHAL2956 wants to merge 1 commit into
SAPTARSHI-coder:mainfrom
KRUSHAL2956:fix/1441-mobile-sidebar-snap
Open

fix(ux): resolve broken mobile sidebar close transition by transitioning visibility#1452
KRUSHAL2956 wants to merge 1 commit into
SAPTARSHI-coder:mainfrom
KRUSHAL2956:fix/1441-mobile-sidebar-snap

Conversation

@KRUSHAL2956
Copy link
Copy Markdown
Contributor

Pull Request Description

Replaces display: none/display: block toggling on the mobile viewport sidebar panel with animatable visibility: hidden/visibility: visible states, resolving the broken close (exit) slide animation.


Type of Change

  • 🐛 Bug fix in an existing submission (UX / Animation Fix)

Submission Checklist

  • One feature/bugfix per PR
  • Build, lint, and tests pass successfully

Notes for Maintainer

This PR resolves issue #1441. Since display changes cannot transition in CSS, closing the sidebar on mobile previously caused it to snap closed instantly, completely bypassing the transform: translateX(-100%) slide-out transition. Transitioning visibility alongside transform fixes the asymmetric entry/exit animations cleanly.

Closes #1441

@KRUSHAL2956
Copy link
Copy Markdown
Contributor Author

@SAPTARSHI-coder please review this merge request. This PR fixes the mobile sidebar's exit animation by transitioning visibility instead of display:none, allowing the slide-out transform to complete smoothly.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

📊 CSS Bundle Size Benchmark

No change in CSS bundle size. ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

📱 UX/Responsive: Mobile Sidebar Slide Transition Snaps Due to display:none Toggle

1 participant