This method utilizes the Intersection observer to zoom the image only when it is in view which cuts down on the processing power required for this effect.