Is it possible to apply a loader image to a specific section of content on a webpage?
All the tutorials I've come across for loader images focus on applying them to entire webpages. However, I am looking to implement a simple loader only to a specific div.
I'm currently working on a website that features 2 profile images for staff members layered over each other. When you hover over the image, it transitions to the back image smoothly. This design choice was made to create a seamless hover effect. One issue I have encountered is that on pages with slower internet speeds, the bottom/back image is displayed until the top one loads. This is not the desired outcome; ideally, the bottom image should only be visible when hovering over the profile image.
Does anyone have suggestions on how I can add a loader image specifically for this part of the content?
For reference, here is one of the pages on the development server: