Streaming live at 10am (PST)

Two buttons with open-close interactions


#1

Hi all,

private link: https://preview.webflow.com/preview/forumwhu?preview=91375deb87b8241e5edc31278ed7a5f6
it is the #ort section.

I have a problem with the following situation

button 1:
1st click: closes content 2, opens content 1
2nd click: closes content 1
button 2:
1st click: closes content 1, opens content 2
2nd click: closes content 2

but now you have to press the button 1 twice after first pressing button 1 and then pressing button 2, as button 1 closes the already closed content 1 on the first click.

what I really want to have is that given open is a property of the content I want the buttons to do the following:
button 1: content1.open = not content1.open; content2.open = false
vice versa

does someone know how to do this in webflow?

Thanks so much!


#2