Element that slides in and becomes sticky

Joss shared this question 1 year ago
Answered

Hi,


I am prototyping a button that should slide in from right (off canvas) after 200px scrolling in y-direction. This button should then become sticky and if you scroll back to the top the button should slide out again. I just can´t get it to work because I can´t combine a sticky element and the slide-in/-out effect. Any help would be much appreciated!


Thanks in advance,

Joss

Comments (2)

photo
1

Dear Joss,


Do you have an example .vp file of what you're describing so we can take a look? You can attach it in a .rar format, or upload it to a file sharing service such as Dropbox, and attach the link to it here.


Best,

photo
1

Hi Sonia,


unfortunately I can´t because the project is highly confidential. I tried to create a On Scroll event that slides the button from right (Show) and in the same event also an On Scroll event that makes the button sticky (Move) but it doesn´t work. The button is not sticky and the slide out is flickering all the time. Do you have any hint on what I could?


Best,

Joss