Intersection Observer Zoom Image Only When It’s In View

Worried about licensing?

Do you have right license for your templates and fonts?

Head over to our partner Envato Elements and unlock unlimited downloads of over 50 million digital assets with full commercial licensing.

  • 50+ Million Assets with Unlimited Downloads
  • Templates, Addons, Fonts, Footage, Photos, Brushes, Presets & More
  • Full Commercial licensing for client work

Get ultimate peace of mind!

Get Started Now
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.