Intersection Observer: Rescale image on scroll when DIV is in viewport
£10-20 GBP
Cancelled
Posted almost 3 years ago
£10-20 GBP
Paid on delivery
I require a script that scales an image down when its parent DIV enters the viewport and stops scaling when exited viewport:
- The script must use Intersection Observer for performance.
- I require the image to scale from 1.5 on entering the viewport and to 1 when parent DIV is scrolled out of viewport.
- The image should not scale beyond this.
- I require a console log to prove that image has stopped scaling.
Type "I Can Help" if you have experience.
I can help, are you sure you don't want the image to scale down when it (itself) enters the viewport?
Should the scaling be anchored on the center of the image?
HI I am experienced in JavaScript Read our guide etc I can start right now but i have few doubts and questions lets have a quick chat and get it started waiting for your reply