Created
February 21, 2019 18:18
-
-
Save alvinwan/a14bf81c9a7208c6a4ef412b0871479b to your computer and use it in GitHub Desktop.
The noob's guide to 3D Transforms with CSS - Cube Example, Style 2
This file contains hidden or 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
.cube { | |
width:100%; | |
height:100%; | |
position:relative; | |
animation: spinning 2s infinite; | |
transform-style:preserve-3d; | |
} | |
@keyframes spinning { | |
from { transform: translateZ(-5em) rotateY(0deg); } | |
to { transform: translateZ(-5em) rotateY(360deg); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment