Hey everyone! I've searched through the Forums and Google for solutions, but I can't seem to find anything to help with this issue. I am trying to make the default pet, minion, and treasure images fade in when hovered over. I found a sort of fix for this issue, but it's not really what I was looking for because it makes only the minion and treasure images "blink" into existence rather quickly:
img {
opacity: 0.2;
}
img:hover { opacity: 1; } Also, I would like to know how to make my text fade in as well. The two pets' profiles I'm trying to use the codes on are Raziel (I'm not using his default pet image here) and Zuky. Below are the current codes I'm using, I just replaced any text I wrote with "WORDS".
Raziel's code
Additional Information
WORDS
You can add this to the code (not the :hover code) for the fade-in effect:
transition: 0.2s all ease;
So for example, if you want the images to have this effect, just write:
img {opacity:0.2; transition: 0.2s all ease; }
You can adjust the transition duration value (0.2s) to anything you like depending on whether you want it to fade it more quickly or slowly. Just remember to add s behind the value; otherwise, it won't work.
If you want some text to have the same effect, first you'll want to figure out which div contains that portion of text. All you need to do then is to add the same code above to that div.
For example, since everything you write will go into , you can change the fade in effect as this:
{opacity:0.2; transition: 0.2s all ease; }
:hover {opacity:1; }
If you have more than one text area and want the effect to apply to only a few of those, you'll need to add this code to the div/ text area you want that effect for, instead of .