Skip to content

Instantly share code, notes, and snippets.

@YerlinMatu
Last active May 14, 2017 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YerlinMatu/db5d03366ab56402453ddbce81e5e3e7 to your computer and use it in GitHub Desktop.
Save YerlinMatu/db5d03366ab56402453ddbce81e5e3e7 to your computer and use it in GitHub Desktop.
Animation Simple Loading
<div class="figura"></div>
@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