To see both sides you need to use the CSS property and value, -webkit-transform-style: preserve3d
on your div#flipthing
.
Your cards are vibrating because the two faces are not aligned exactly on top of each other. When the card is flipping, your cursor enters the margins, or the back element which causes the vibrating, or the resetting of the animation.
Try setting your two <p>
tags to be exactly the same, stacked on top of the each other:
div#flipthing { position: relative; }
div#flipthing p {
position: absolute;
top: 0;
left: 0;
}
div#flipthing p:first-child {
z-index: 10;
}
This will allow your first paragraph to be stacked on top of the second.
Additionally, for your back face, you should put the -webkit-transform
and -webkit-backface-visibility
on the paragraph instead of the nested table.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…