Is it possible to shrink an element on scroll?

Hello!
I have been trying to find a Velo code for shrinking an image / illustration on scroll but so far haven’t found one. Any suggestions?

This is the only option given by VELO related to change image-sizing…(as i know).

https://www.wix.com/velo/reference/$w/image/fitmode