Skip to content

Instantly share code, notes, and snippets.

@Poltergeist
Created October 27, 2015 16:04
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 Poltergeist/6f5b85a51381f02e0597 to your computer and use it in GitHub Desktop.
Save Poltergeist/6f5b85a51381f02e0597 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.circle{
height: 100px;
width: 50px;
position: relative;
top: 0;
left: 0;
background: white;
}
.circle:hover:before, .circle:hover:after{
transform: rotate(45deg);
opacity: 1;
}
.circle:before{
content: '';
height: 98px;
width: 98px;
position: absolute;
top: 0;
left: 0;
z-index: -1;
border: 1px red solid;
border-color: red red transparent transparent;
border-radius: 50%;
transform: rotate(-135deg);
transition: transform 5s ease-in;
}
.circle:after{
content: '';
height: 98px;
width: 98px;
position: absolute;
top: 0;
left: 0;
z-index: 1;
border: 1px red solid;
border-color: transparent transparent red red;
opacity: 0;
border-radius: 50%;
transform: rotate(-135deg);
transition: transform 5s ease-out, opacity .1s 5s;
}
<div class="circle">test</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment