Hi there
I’d love to create a button like this:
normal state: image 1
hover state: image 2
this should then link to another page.
I’ve looked through a few threads and have followed the advice:
I’ve added this code to the custom CSS of the page:
a.x-img.bottom-img-1 {
background: url(http://gwendiklisa.com/wp-content/uploads/2017/08/Screen-Shot-2017-08-04-at-18.00.27.png) no-repeat center top;
background-size: contain;
transition: 0.25s all ease-in-out;
}
a.x-img.bottom-img-1:hover img {
opacity: 0;
transition: 0.25s all ease-in-out;
}
a.x-img[class*=“bottom-img”] img {
transition: 0.25s all ease-in-out;
}
And then I’ve added the class to that image I want to hover
bottom-img-1
But nothing happened… I’d really appreciate if you could check what I’ve been doing wrong…