I am utilizing Sharp to implement lazy loading for images on my Gatsby website. Currently, the images appear blurry and only come into focus once they enter the screen.
Is there a method to add CSS styles or filters to these blurry images while they are still in their initial state, and then remove them once they have completely loaded? I haven't noticed any changes in classes before or after the images finish loading.
Would it be possible for the images to obtain a specific class when the entire page has finished loading, and then lose that class once the individual image is fully loaded? Alternatively, is there a way to apply an initial style and then promptly remove it once the image has completed loading?
Any insights would be greatly appreciated! Thank you!