I have an image in my nav bar that has a default appearance
transform: -79px on the Y axis
When the user scrolls down to a certain point, I have an interaction that affects the image to give it a
transform:'move to origin'
The idea is that once the user moves past the hero image (which has the logo in it), it will animate the logo into the nav bar.
I have a working example here.
The problem is that I want the image to animate back out of the navbar once the user scrolls back up to the top.
How can I achieve this?