I am trying to make an effect of a coin flipping when you hover over it. I got it to work using the Classic Card element but it only works on the editor, not the live page. It only shows the first side and won’t flip. I’m not sure if it’s because of how I set it up, I had to basically make everything blank and then for the content I put an image via html for both front and back.
I also tried to make the effect with CSS but I don’t really know what I am doing. I got somewhat close with
.tcoin:hover
{
content: url(https://digixid.com/wp-content/uploads/2019/05/ct-coin.png);
z-index: 999;
width: 100%;
transform: rotateX(180deg);
transition: all 1s
}
but the image swaps before the transition goes and the second image is upside down.
I don’t really know CSS so if you could either advise me on a fix for the Card element or some tips on the CSS that would be appreciated.
https://digixid.com/test-page/
The top right is the CSS one and the second one is the card element.