Making a Navigation Drawer/Sliding Sidebar with TailwindCSS (Blueprint) Fayaz Ahmed on May 29, 2020 Let's build the above navigation sidebar with TailwindCSS & Nuxt.js. It's not necessarily a nuxt specific project I will be hardly using any ... Read full post Submit Preview Dismiss Collapse Expand Fayaz Ahmed Fayaz Ahmed Fayaz Ahmed Follow Vue, Nuxt, Node, Javascript, Mongo, Pizza. Location Bangalore Work Fullstack Engineer Joined Jan 2, 2019 • May 29 '20 Dropdown menu Copy link Hide Just checked it, works in a similar way I have explained here. Collapse Expand alijcode alijcode alijcode Follow I am a beginner trying to learn coding Location Mumbai Work Frontend engineer at Self employed Joined May 12, 2020 • May 29 '20 Dropdown menu Copy link Hide Thanks for the article. Collapse Expand OriolRF OriolRF OriolRF Follow Software engineer Location Barcelona Work Software engineer at Self employed Joined Jul 3, 2020 • Jul 3 '20 Dropdown menu Copy link Hide Hi Ahmed thank you for this great example. how could I have the main content to shrink when the sidebar is displayed, instead of the sidebar to overlap the main content? Collapse Expand Tirta Keniten Tirta Keniten Tirta Keniten Follow I work for money, and code for fun. And my job is coding, so I got money and have fun at the same time. Isn't that cool? Location Indonesia Work Web Developer Joined Feb 25, 2020 • Aug 27 '20 Dropdown menu Copy link Hide Thank you Ahmed Collapse Expand NDH103 NDH103 NDH103 Follow Joined Nov 9, 2019 • Feb 13 '21 Dropdown menu Copy link Hide Nice Collapse Expand Luca Mellano Luca Mellano Luca Mellano Follow Joined Feb 15, 2021 • Oct 17 '21 Dropdown menu Copy link Hide Wonderful... one question: How to open menu from the right? Collapse Expand zabocado zabocado zabocado Follow Joined Nov 1, 2021 • Nov 1 '21 • Edited on Nov 1 • Edited Dropdown menu Copy link Hide Replace left-0 with right-0 to have the menu position to the right, then replace-translate-x-full with translate-x-full to have the transition change direction toward the right instead of the left. Collapse Expand Fred Kufner Fred Kufner Fred Kufner Follow Location Long Island, NY Work Software Architect at self employed Joined Apr 5, 2020 • Nov 28 '21 Dropdown menu Copy link Hide thanks! Collapse Expand alijcode alijcode alijcode Follow I am a beginner trying to learn coding Location Mumbai Work Frontend engineer at Self employed Joined May 12, 2020 • May 29 '20 Dropdown menu Copy link Hide The background is very cut. Collapse Expand Fayaz Ahmed Fayaz Ahmed Fayaz Ahmed Follow Vue, Nuxt, Node, Javascript, Mongo, Pizza. Location Bangalore Work Fullstack Engineer Joined Jan 2, 2019 • May 29 '20 Dropdown menu Copy link Hide Cut? Collapse Expand Isidro Martínez Isidro Martínez Isidro Martínez Follow ISC | fullstack dev | Vue + Laravel | FutureLab 🚀 Location México Work FullStack Developer Joined Dec 9, 2019 • Jun 19 '20 Dropdown menu Copy link Hide When I click on Nuxt-link the sidebar still open.. how close it when a link is clicked ? Awesome work btw! 🔥 Collapse Expand Fayaz Ahmed Fayaz Ahmed Fayaz Ahmed Follow Vue, Nuxt, Node, Javascript, Mongo, Pizza. Location Bangalore Work Fullstack Engineer Joined Jan 2, 2019 • Jun 19 '20 Dropdown menu Copy link Hide You can add a close logic when link is clicked with @click.native="isOpen = false" The .native ensure click happens as well page ia navigated. Code of Conduct • Report abuse
Just checked it, works in a similar way I have explained here.
Thanks for the article.
Hi Ahmed
thank you for this great example.
how could I have the main content to shrink when the sidebar is displayed, instead of the sidebar to overlap the main content?
Thank you Ahmed
Nice
Wonderful... one question:
How to open menu from the right?
Replace
left-0withright-0to have the menu position to the right, then replace-translate-x-fullwithtranslate-x-fullto have the transition change direction toward the right instead of the left.thanks!
The background is very cut.
Cut?
When I click on Nuxt-link the sidebar still open.. how close it when a link is clicked ? Awesome work btw! 🔥
You can add a close logic when link is clicked with @click.native="isOpen = false"
The .native ensure click happens as well page ia navigated.