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