Ring CSS
Test Animate pseudo-element (SINGLE ELEMENT) / ANIMATE + ELEMENT
<!--
<!--
autor: Marco Barría
https://twitter.com/marco_bf
-->
<!----------------------------- single element -->
<div class="hoja">SINGLE</div>
<!----------------------------- + element -->
<div class="contenedor">
MORE
<div class="borderUno"></div>
<div class="borderDos"></div>
</div>
url(http://fonts.googleapis.com/css?family=Open+Sans:700);
http://fonts.googleapis.com/css?family=Open+Sans:700);url(
// ============================================ VAR
180px; // size control // diametro:
/2); // radio:(
/8);:(
0.8; // opacity:
1.5s; // accelerate:
// ============================================ GENERAL
html,
body{
height:100%;
}
body{
background:rgb(255,255,244);
}
// ============================================ SINGLE ELEMENT
.hoja{
color:rgb(220,220,226);
position:absolute;
top:50%; left:50%;
margin-left:- ;
margin-top:- ;
width: ;
height: ;
text-align:center;
font-family: 'Open Sans', sans-serif;
font-size: /4;
line-height: ;
-webkit-font-smoothing: antialiased;
}
.hoja:after,
.hoja:before{
content:"";
border-radius:100%;
position:absolute;
top:0; left:0;
width:100%;
height:100%;
transform-origin:center center;
}
.hoja:after{
box-shadow: inset 0 0 rgba(250, 250, 0, ),
inset 0 0 rgba(250, 200, 0, ),
inset 0 - 0 rgba(250, 150, 0, ),
inset -0 0 rgba(250, 100, 0, );
animation:rotar linear infinite;
}
.hoja:before{
box-shadow: inset 0 0 rgba(0, 250, 250, ),
inset 0 0 rgba(0, 200, 200, ),
inset 0 - 0 rgba(0, 150, 200, ),
inset -0 0 rgba(0, 200, 250, );
animation:rotarIz linear infinite;
}
// ============================================ + ELEMENT
.contenedor{
color:rgb(220,220,226);
position:absolute;
top:50%; left:50%;
margin-left:- +100px;
margin-top:- ;
width: ;
height: ;
text-align:center;
font-family: 'Open Sans', sans-serif;
font-size: /4;
line-height: ;
-webkit-font-smoothing: antialiased;
}
.borderUno,
.borderDos{
border-radius:100%;
position:absolute;
top:0; left:0;
width:100%;
height:100%;
transform-origin:center center;
}
.borderUno{
box-shadow: inset 0 0 rgba(100, 250, 50, ),
inset 0 0 rgba(50, 200, 150, ),
inset 0 - 0 rgba(150, 150, 0, ),
inset -0 0 rgba(250, 50, 0, );
animation:rotar linear infinite;
}
.borderDos{
box-shadow: inset 0 0 rgba(0, 250, 250, ),
inset 0 0 rgba(0, 200, 200, ),
inset 0 - 0 rgba(50, 150, 200, ),
inset -0 0 rgba(50, 200, 250, );
animation:rotarIz linear infinite;
}
// ============================================ KEYFRAMES
rotar{
0%{
transform:rotateZ(0deg) scaleX(1) scaleY(1);
}
50%{
transform:rotateZ(180deg) scaleX(0.82) scaleY(0.95);
}
100%{
transform:rotateZ(360deg) scaleX(1) scaleY(1);
}
}
rotarIz{
0%{
transform:rotateZ(0deg) scaleX(1) scaleY(1);
}
50%{
transform:rotateZ(-180deg) scaleX(0.95) scaleY(0.85);
}
100%{
transform:rotateZ(-360deg) scaleX(1) scaleY(1);
}
}