Hey guys ,
I have a little question and am convinced that some of you can easily help me out!
I just want to animate a navbar after I scroll down 50% of my hero section. (Like https://www.invisionapp.com) With Interactions 1.0 this was super easy but I just donāt understand how I can create something like this with Interactions 2.0
There is no threshold for the āscroll-inā āscroll-outā trigger in IX2 yet, thatās why youāre confused.
But thereās a technique nevertheless, and itās much more precise. I was using it for IX Legacy too.
Instead of placing the interaction on the element that must be affected by it, you place it on a dummy, invisible div that you place exactly where you want, using absolute positioning. Then you target the class of the element that must be affected.
Look here: www.lebathyscaphe.com and look on the right side of the newspaper. Iāve let the divs that I use as triggers for the submarine animation visible.
Using that technique you can adjust events exactly like you want, and fine tune them easily by just moving the divs. Even better, by using VH units for their vertical position, you can stretch or shrink a whole series of animations depending on the viewport height, and ensure a good viewing experience on all devices.
PS: you can still use IX Legacy, along with IX2. They can work together.
hey @vincent for that super accurate question!! Iām sure that this will solve my problem! I will try to create this animation and let you know if I figure it out.