I am having a problem with this interaction. I am trying to open and close the modal using opacity and slide to the left. It seems very glitchy and for some reason it doesn’t behave the way I want.
You’re using initial state on both your open and close interaction. So they kind of fight to be THE initial one. Don’t use initial state in your close IX: you know what the state is, as the open IX just ran. Just proceed with the closing anims and make sure you end up with the modal opacity:0 and moved to the right.
Thank you for your help. I tried to do what you said but it’s not working. It’s not going back to the initial state. it is very glitchy and I can’t figure out what’s wrong. I thought the problem was related to the positions of the div-bocks (relative/absolute) and the animation un the X axis, it was in percentage before so I change it in pixels but nothing changed.
Do you think you can quickly show me how to solve it by taking some screenshots?
Also I just noticed when I display the website in different modes (desktop, tablet and phone) on my computer everything works, but when I try it on my iPad the scroll go crazy and the hero divblock doesn’t fit the hight of the screen, resulting in a sort of double scroll.
Ok. Thanks for explaining. I’m out of office now but when i get back I’ll take a look and see what can be figured out, unless someone else beats me to it!