Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Changing imgs by “a:hover”. Help! Re: Changing imgs by “a:hover”. Help!

#130114
Kitty Giraudel
Participant

Depending on the size of your image, you might want to use a little pseudo-element hack in order to avoid an awkward loadtime when hovering.

.my-element:after {
content: ”;
background: url(my-hover-image);
clip: rect(0 0 0 0);
opacity: 0;
position: absolute;
}