Intersection Observer Zoom Image Only When It’s In View

Image: Intersection Observer Zoom Image Only When It’s In View GIF

Here is a pretty cool zoom-in image view as you scroll down the page effect by Chris Weissenberger, that uses Intersection Observer to zoom the image only when it is in view, which cuts down on the processing power required for this image effect.

If you are having trouble with the pen, try the archived copy on GitHub

Scroll Zoom Code Snippet

See the Pen Efficient Scroll Zoom by Chris Weissenberger (@CAWeissen) on CodePen.default

Posted by:Saijo George

Digital Marketer with a strong focus on technical SEO and design. One of the top 100 makers on Producthunt, co-organizer of the SEO Meetup in Melbourne, an instructor at General Assembly. Worked with brands like Envato, AEON. Currently the SEO Strategy Director at Supple.