Hello
I want to ask you if there is a way to change the image on hover , I mean i create an image addon but i want when someon passes over (hover) to change to a second image, is that possible?
Thank you in advance
Change image on hover
3 replies
Hello
The only way to do this is to use css. Pseudo elements :: before, :: after. You can add them on hover. CSS Knowledge is required for this. The best css tutorials is here https://www.w3schools.com/css/default.asp
Use the CSS background-image property
You can simply use the CSS background-image prop
Alas, no! For several years, I have been asking you to make this kind of functionality in addons where images are used. But all requests are ignored.
There are a lot of ideas to implement, but the guys only do what they think is necessary.
Hello
I have tried the raw html addon with this css code
a img:last-child {
display: none;
}
a:hover img:last-child {
display: block;
}
a:hover img:first-child {
display: none;
}
it is working but i want to add caption only to the first image and not to the hover image , any idea how to do this?