Animation to open / close element after a drag

Hello guys !

I want a menubar to be draggable so it shows a div under it and open / close itself if the user dragged it enough.

So I managed to do that, it works, see the codepen :

But… I find it not really smooth, and not really good looking. I’m also concerned about performances on older devices. So I would be very grateful if someone could give me another solution !

Thanks :smile:

1 Like

Bump ! Still need help guys !

Last try for a bump, but I guess there is nothing better out of the box !

thanks man, you save my life :slight_smile: