I have created a sidebar, example shared here, with a dropdown and two links.
Two questions:
How can I set the bottom two links/buttons relative to the dropdown, so that when it is open it bumps them down lower, rather than covering them up?
How can I keep the dropdown open when a relevant page is selected? for example: “View 2” is clicked > “View 2” is opened; dropdown (with “View 2” highlighted) remains open
I have been playing around with this but am stumped. Help greatly appreciated!
Wondering if one of you might be able to help with this. I figured out how to do part one using interactions; however, I seem to have a lingering issue:
In the preview version, the interactions I built in work very smoothly. In the published version, something else is happening. Not sure what this is.
I’ve built three interactions triggered by the dropdown:
“Dropdown nudge,” which pushes down the “add” and “about” nav links when the dropdown is opened [WORKING WELL]
“Ease dropdown list,” which should ease down the dropdown list from 50px up and opacity 0% down to its origin, at opacity 100%. [WORKING IN PREVIEW, NOT IN PUBLISH]
“dropdown icon rotate” [WORKING WELL]
So, in short, the main difference is the speed with which the dropdown list eases in in the “published” view, vs. in the preview.
Meanwhile, I have not figured out how to open the dropdown menu (automatically, on page load) if one of the dropdown links is opened. Is this even possible?
Thanks, @VLADinSACRAMENTO. @PixelGeek, any ideas as to why the dropdown interaction is behaving differently in preview vs. publish? or @Waldo@cyberdave ?
Hey @johanna_f regarding your first question, you will want to set your Dropdown List to position: Relative. Then remove the interactions which you have set to move the links down. Please let me know if that solves the problem. I’ll start a new conversation for your other questions.
Is it possible to somehow have the dropdown automatically open on page load if the active page is one of the links in the dropdown? AKA, this screenshot, automatically.