A Pen por Yerlin Matu on CodePen.
Last active
May 14, 2017 20:45
-
-
Save YerlinMatu/db5d03366ab56402453ddbce81e5e3e7 to your computer and use it in GitHub Desktop.
Animation Simple Loading
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="figura"></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
@mixin Forma($anchoX, $altoY){ | |
width:$anchoX; | |
height:$altoY; | |
} | |
@mixin Fondo($color){ | |
background-color:$color; | |
} | |
.figura { | |
@include Forma(200px, 200px); | |
@include Fondo(Salmon); | |
position:absolute; | |
margin:0 auto; | |
display:block; | |
top:30%; | |
left:45%; | |
animation-duration:3s; | |
transform-style: preserve-3d; | |
animation-name:Girar; | |
animation-iteration-count:infinite; | |
} | |
@-webkit-keyframes Girar{ | |
from{ | |
-webkit-transform: rotateY(0deg); | |
} | |
to { | |
-webkit-transform: rotateY(-360deg); | |
background-color:Skyblue; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment