A Pen by Greg Hovanesyan on CodePen.
Created
June 23, 2017 06:44
-
-
Save CodeMyUI/6ff1126aaaa84c7d96e6109c7473bd68 to your computer and use it in GitHub Desktop.
backface-visibility
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="card"> | |
<a class="card--title" href="#">Spinning card</a> | |
<p class="card--text"> | |
demonstrating the backface visibility | |
</p> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@keyframes spin { | |
from { | |
transform: rotateY(0); | |
} | |
to { | |
transform: rotateY(1turn); | |
} | |
} | |
.card { | |
animation: spin 5s ease; | |
animation-iteration-count: infinite; | |
} | |
.container { | |
perspective: 1000px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css" rel="stylesheet" /> | |
<link href="https://codepen.io/gregh/pen/jyNrJW.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment