Last active
August 29, 2015 14:02
-
-
Save aabir/3ec607a80626d7b93935 to your computer and use it in GitHub Desktop.
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
#main { | |
width: 400px; | |
height: 300px; | |
margin: auto; } | |
#center-circle { | |
border: 10px solid #746EBB; | |
border-bottom-color:#ECEBFA; | |
-webkit-transform: rotate(360deg); | |
-moz-transform: rotate(360deg); | |
transform: rotate(360deg); | |
position:absolute; | |
background: -webkit-linear-gradient(top, #fff 48%, #ECEBFA 49%, #ECEBFA 51%, #fff 52%); | |
background: -moz-linear-gradient(top, #fff 48%, #ECEBFA 49%, #ECEBFA 51%, #fff 52%); | |
background: linear-gradient(to bottom, #fff 48%, #ECEBFA 49%, #ECEBFA 51%, #fff 52%); | |
margin: 10px; | |
width: 140px; | |
height: 140px; | |
-webkit-border-radius: 140px; | |
-moz-border-radius: 140px; | |
border-radius: 140px; | |
-webkit-animation:turning_cw 5s infinite; | |
-moz-animation:turning_cw 5s infinite; | |
animation:turning_cw 5s infinite; } | |
#content { | |
position:absolute; | |
top: 10px; | |
left: 10px; | |
width: 120px; | |
height: 120px; | |
-webkit-border-radius: 140px; | |
-moz-border-radius: 140px; | |
border-radius: 140px; | |
background: #2E2A69; | |
text-align:center; | |
line-height: 120px; | |
font-size: 30px; | |
color:#746EBB; | |
text-shadow: 0 2px 2px #000; | |
font-weight:bold; } | |
#inner-circle { | |
border: 10px solid #ECEBFA; | |
border-left-color:#746EBB; | |
border-right-color:#746EBB; | |
-webkit-transform: rotate(360deg); | |
-moz-transform: rotate(360deg); | |
transform: rotate(360deg); | |
position:absolute; | |
background: -webkit-linear-gradient(top, #ecebfa 48%, #746EBB 49%, #746EBB 51%, #ECEBFA 52%); | |
background: -moz-linear-gradient(top, #ecebfa 48%, #746EBB 49%, #746EBB 51%, #ECEBFA 52%); | |
background: linear-gradient(to bottom, #ecebfa 48%, #746EBB 49%, #746EBB 51%, #ECEBFA 52%); | |
margin: 10px; | |
width: 180px; | |
height: 180px; | |
-webkit-border-radius: 180px; | |
-moz-border-radius: 180px; | |
border-radius: 180px; | |
-webkit-animation:turning_acw 3s infinite; | |
-moz-animation:turning_acw 3s infinite; | |
animation:turning_acw 3s infinite; } | |
@-webkit-keyframes aura { | |
0%{ | |
text-shadow: 0 2px 2px #000; } | |
50%{ | |
text-shadow: 0 10px 10px #000; | |
line-height: 190px; } | |
100%{ | |
text-shadow: 0 2px 10px #000; } | |
} | |
@-webkit-keyframes turning_cw { | |
0%{ | |
-webkit-transform: rotate(0deg); } | |
100%{ | |
-webkit-transform: rotate(360deg); } | |
} | |
@-webkit-keyframes turning_acw { | |
0%{ | |
-webkit-transform: rotate(360deg); } | |
100%{ | |
-webkit-transform: rotate(0deg); } | |
} | |
@-moz-keyframes aura { | |
0%{ | |
text-shadow: 0 2px 2px #000; } | |
50%{ | |
text-shadow: 0 10px 10px #000; | |
line-height: 190px; } | |
100%{ | |
text-shadow: 0 2px 10px #000; } | |
} | |
@-moz-keyframes turning_cw { | |
0%{ | |
-moz-transform: rotate(0deg); } | |
100%{ | |
-moz-transform: rotate(360deg); } | |
} | |
@-moz-keyframes turning_acw { | |
0%{ | |
-moz-transform: rotate(360deg); } | |
100%{ | |
-moz-transform: rotate(0deg); } | |
} | |
@keyframes aura { | |
0%{ | |
text-shadow: 0 2px 2px #000; } | |
50%{ | |
text-shadow: 0 10px 10px #000; | |
line-height: 190px; } | |
100%{ | |
text-shadow: 0 2px 10px #000; } | |
} | |
@keyframes turning_cw { | |
0%{ | |
transform: rotate(0deg); } | |
100%{ | |
transform: rotate(360deg); } | |
} | |
@keyframes turning_acw { | |
0%{ | |
transform: rotate(360deg); } | |
100%{ | |
transform: rotate(0deg); } | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Rotating Circle </title> | |
<link href="app.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div id="container"> | |
<div id="main"> | |
<div id="inner-circle"> | |
<div id="center-circle"> | |
<div id="content"> PHP </div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment