drawer sliding animation not working
hey folks this is my code I'm trying to have sliding animation from right when drawer open and closes but it not working
3 Replies
where does the value of
open
actually change?navbar component where the drawer component is being used here is the stackblitz url
https://stackblitz.com/edit/vitejs-vite-muujzx?file=src%2FApp.tsx
AdityaKirad
StackBlitz
Vitejs - Vite (forked) - StackBlitz
Next generation frontend tooling. It's fast!
there I can see
setDrawer(false)
which eventually toggles open
state which then toggles className and other stuff in a very convoluted way.
I don't see open
being changes in your example so a switch between 'translate-x-0' and 'translate-x-full' could be effective.