Hello all, I am a newcomer to the world of web coding. Please bear with me if I ask something that may seem silly or trivial. I recently created a menu bar at the top of my webpage. Below that, there is a Div element containing an image. My goal is to make this image shrink down and transform into a logo on the menu bar when the user scrolls down. What specific "skill" or technique should I use for this effect? Most of the search results I've found demonstrate shrinking the menu bar itself, but I'm looking to shrink an image into a logo instead. I've tried several Google searches using different terms, but have not been able to find the right term for this particular 'skill'. Can someone please assist me in figuring this out?
<div id="menubar">Main Bar Here</div>
<div id="topcontent">
<img src="img.jpg" /> <----this image will shrink up to the menu bar when i scroll down.
</div>
Something like what is shown in this example , where the logo spins up, but I want something additional where it sticks to the menu bar.
Thank you so much for your help!