Skip to content

Instantly share code, notes, and snippets.

@alvinwan
Created February 21, 2019 18:13
Show Gist options
  • Save alvinwan/fc91ce59c8cb656419be8bab284a5426 to your computer and use it in GitHub Desktop.
Save alvinwan/fc91ce59c8cb656419be8bab284a5426 to your computer and use it in GitHub Desktop.
The noob's guide to 3D Transforms with CSS - Flipping Card Example, Style 3
.face {
width:100%;
height:100%;
color:#FFF;
line-height:15em;
text-align:center;
position:absolute;
backface-visibility:hidden;
}
.front {
background-color:#0379ff;
}
.back {
background-color:#333;
transform: rotateY(180deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment