Skip to content

Instantly share code, notes, and snippets.

@bhargav2785
Created December 8, 2012 09:05
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 bhargav2785/4239418 to your computer and use it in GitHub Desktop.
Save bhargav2785/4239418 to your computer and use it in GitHub Desktop.
TRON Clock *
/** TRON Clock **/
body{
background-color: black;
}
.tron{
position: relative;
width: 300px;
height: 300px;
}
.tron > span:nth-child(odd){
background-color: #00D9EF;
}
.tron > span:nth-child(even){
background-color: black;
}
.c{
position:absolute;
border-radius: 50%;
}
.c1{
width: 100%;
height: 100%;
}
.c2{
width: 90%;
height: 90%;
margin: 5%;
}
.c3{
width: 80%;
height: 80%;
margin: 10%;
}
.c4{
width: 70%;
height: 70%;
margin: 15%;
}
.sec{
position: absolute;
left: -webkit-calc(50% - 5%/2);
width: 5%;
height: 50%;
background-color: black;
-webkit-transform: rotate(90deg);
-webkit-transform-origin: 50% 100%;
-webkit-transition: -webkit-transform 15s linear;
}
.sec:hover{
}
<div class='tron'>
<span class='c c1'><span class='sec'></span></span>
<span class='c c2'></span>
<span class='c c3'></span>
<span class='c c4'></span>
</div>
// alert('Hello world!');
{"view":"separate","fontsize":"60","seethrough":"","prefixfree":"","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment