Streaming live at 10am (PST)

IX2 Show and Hide


#1

Hi everyone,

Not sure who’s had a chance to look at new show and hide Interaction functionality in IX2? I can’t figure out why I seem to have to click the button twice to get it to close? It opens fine, then closes when I do two clicks. Then opening a second time isn’t that smooth. Can’t anyone help please? It’s the first Find out more button.

https://preview.webflow.com/preview/answers-website-rebuild-2?preview=dfb88b9073f48dedd223ab9cf29ca548


#2

Hey there.

Your issue is that you have first and second click interactions assigned to both buttons. Remove the second click interactions from the Find Out More button. Then, you need to remove all the second click interactions from the See Less button. You then need to make sure the first click interactions on each button are doing everything you want to happen when a user clicks each button, and nothing more.

Think about it this way… each button does one thing, and that one thing needs to happen on the first click for each button. They never do anything different on the second click, so you don’t need a second click interaction on either button.

Let me know if this makes sense.

Best,
Christopher


#3

I am now experiencing a lot of bugs with the Show and Hide on one of my projects in regards to affecting other elements. Let me know if you run into similar issues after you’ve done what I’ve described above.


#4

Thanks Christopher,

Your comments really helped : ) Got it working, although now there seems to be a jump when you click it open and closed (not all the time though. I will let you know if I come across any issues that you’re experiencing.