Streaming live at 10am (PST)

Sidebar Sliding Back Upon Clicking Anywhere Outside of the Sidebar


#1

I have created a side bar which slides in and out when I click the hamburger icon in phone view:

https://preview.webflow.com/preview/leasehackr?preview=3896d944636b1d739eeef9fcf4d938c4

The sidebar, however, would only slide in and out if I click the hamburger icon. I would very much like to create and animation effect which allows me to slide the sidebar out when I tap anywhere outside of the sidebar. Could somebody give me some pointers on how I could achieve the effect? Thank you very much!


#2

You might have to add another div that takes up the whole viewport but is behind your nav menu.

Then, make an interaction for it to close itself and the nav menu when tapping on it.


#3

Hi @littleviolette, Can you please update your post with some more information so we can help you faster? Things like screenshots and your environment info really speed things up.

Posting guidelines can be found here: http://forum.webflow.com/t/posting-guidelines-for-the-need-help-category/8094

Thanks in advance! smile


#4

@PixelGeek Thanks for the response. I am having trouble setting the interaction up. If you could further assist me with this, I would really appreciate it!

I have recorded the problems I have here:

http://quick.as/ZbndcYXAY

@thewonglv My browser is Chrome.


#5

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.