Help needed with the translate-animate attribute. I have an image that I want to move upwards when scrolling down on the page. I understand how to use translateY(px) to shift it, but I'm unsure how to perform this translation while scrolling. I aim to create a similar effect
Upon scrolling down, the image smoothly moves upward on Apple's webpage. I am seeking a code snippet to achieve a seamless upward translation effect for my image during scroll events.
P.s- This is my first query so apologies if I am not articulating clearly.