Streaming live at 10am (PST)

Force Initial View When Changing Viewport


#1

I've built a collapsible Sidebar that is always shown in desktop mode and hidden in tablet and phone mode. It works fine with one problem: When I switch to tablet or phone mode, show and hide the sidebar and then switch back to desktop with the hidden bar, the sidebar stays hidden. I assume that the display:hidden; set by the interaction has priority over the style from the desktop view.

So, what I'm looking for is a way to force the display attribute to its initial state and ignore the value set by the interaction as soon as we switch the viewport. Is that possible in Webflow?


closed #2

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