Need help adding CSS transition / fade effect when hovering over background images
Doe anyone here have any suggestions as to how I might add some kind of transition (ie: fade in/fade out effect) when hovering over the large horizontal images on this page (ie: Mosaic, Panorama, Watercolor, Indian Springs, The Ranches):
here is a fiddle that may help. You are just adding opacity and transition to your css. I attached it to a class but you can remove that and just use img for all images.
Thanks Scott . .but this isn't quite what I'm looking to achieve. I'm trying to slow down / animate the transition between the gradient overlayed image and the non-gradient overlaid image.
Thanks Paul .. but nope, that's still not it. I am initially overlaying a CSS gradient effect over a single image, and I'm essentially just trying to "slowly fade out" the transition between the gradient overlaid image and the non gradient overlaid image.
Anyone else? I thought I did a fair job of explaining what it is that I'm trying to achieve here, but perhaps not.
Is this just not technically possible?
obviously we must have misunderstood I thought my examples did what you want but if that's not the case please let me know how to adjust.
Julian Hansen
@egoselfaxis,
I have been following this thread and I have to admit that I am not clear on requirements. I thought Scott provided good examples but clearly they are not in line with your expectation.
Can you find an example site that shows what you want to do so that we can get a visualization?
Let's look at your opening question
Doe anyone here have any suggestions as to how I might add some kind of transition (ie: fade in/fade out effect) when hovering over the large horizontal images on this page (ie: Mosaic, Panorama, Watercolor, Indian Springs, The Ranches):
You ask for "some kind of transition" but you don't give explicit instructions on what you are looking for exactly.
You then posted
I'm trying to slow down / animate the transition between the gradient overlayed image and the non-gradient overlaid image.
And
I am initially overlaying a CSS gradient effect over a single image, and I'm essentially just trying to "slowly fade out" the transition between the gradient overlaid image and the non gradient overlaid image
So Scott slowed it down.
That also was not right.
Where have you given explicit instructions on what you want to achieve?
The more detail (and examples) you can give us the better the responses will be. So far Scott has given you two good examples - which easily fit your specifications as they appear in this thread. If they are not right you need to be more explicit.
egoselfaxis
ASKER
If you have a look at my current CSS --- as well as the page URL that I'm currently working on --- (both of which I posted in my initial question) you'll see that I have a background image that has a gradient color overlay that has a percentage value of about 60% (ie: .6) .. and that then changes to 0% oh hover (ie: 0). I'm just trying to slow down that transitioning from 60% to 0% so that the hover effect is more subtle and not so abrupt .. as is happening currently. I'm not trying to achieve anything having to do with opacity at all whatsoever.
It took me a bit to figure out how to merge your modifications into what I already had going on .. but I am very pleased with the end result. Thanks for your patience. Have a great weekend!
https://jsfiddle.net/81m3x04g/
Open in new window
Open in new window