I'm struggling to maintain the rollover image (e.g. .rolled-thumb-1
) displayed after rolling off the image thumbs. I expected it to work using the transition delay property just like in this demo, but unfortunately, that's not happening. When rolling over the thumbs, an absolutely positioned div is created instead of replacing the initial large image's background image.
The relevant selector for this issue is:
.rolled {
transition: background-image .1s 604800s;
background-size: cover;
}
And when hovering over, let's say the first thumb:
#thumb-1:hover .rolled-thumb-1 {
background-image: url('https://cml.sad.ukrd.com/image/394545.jpg');
transition: background-image 0s;
transition-delay: 0s;
}
I've tried rearranging the transition and transition-delay rules as suggested in similar posts, but it hasn't helped. Uncommenting the transparent line as mentioned above results in only one image working, and then it doesn't change back and only one works. It seems like there may be an issue with having nothing to transition initially, as it does somewhat transition when the BG image was present, although not correctly.
If anyone has any insights or suggestions, please share. An explanation of where I might be going wrong would be greatly appreciated. Thank you for your assistance.
<!-- CSS code block here -->
<!-- HTML code block here -->
UPDATE This is a different issue from my previous post; the solution provided previously doesn't apply here. I'm not trying to spam; I genuinely need help figuring out how to solve this problem.