Skip to content

Instantly share code, notes, and snippets.

@jagsbyteinception
Created August 17, 2020 18:48
Show Gist options
  • Save jagsbyteinception/d662c4e9ed10ff95ad8abbe034dd53a3 to your computer and use it in GitHub Desktop.
Save jagsbyteinception/d662c4e9ed10ff95ad8abbe034dd53a3 to your computer and use it in GitHub Desktop.
.flip-card-inner {
transition: transform 0.6s;
transform-style: preserve-3d;
}
/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
}
/* Position the front and back side */
.flip-card-front, .flip-card-back {
-webkit-backface-visibility: hidden; /* Safari */
backface-visibility: hidden;
}
/* Style the back side */
.flip-card-back {
transform: rotateY(180deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment