So I have some buttons. What I want is to make the container of the buttons 50% transparent when none of the buttons are active.
For this, I made a webflow interaction of the buttons to change colors when clicked. On second click, they change the color back to normal.
I added an event listener to check if the color of the buttons changed. In case the color changed, I made the container 100% visible.
I think the logic is good but it doesn’t work so I need your help.