Skip to content

Instantly share code, notes, and snippets.

@johnhunter
Created June 23, 2013 17:18
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 johnhunter/5845771 to your computer and use it in GitHub Desktop.
Save johnhunter/5845771 to your computer and use it in GitHub Desktop.
Throbbing glow effect
/**
* Throbbing glow effect
*/
body {
background: #fff;
}
@-webkit-keyframes throb {
from { box-shadow: 0 0 20px #6cf; }
50% { box-shadow: 0 0 00px #6cf; }
to { box-shadow: 0 0 20px #6cf; }
}
@-moz-keyframes throb {
from { box-shadow: 0 0 20px #6cf; }
50% { box-shadow: 0 0 00px #6cf; }
to { box-shadow: 0 0 20px #6cf; }
}
div {
padding: 4em;
background-color: rgba(0,0,0,.6);
border-radius: 10px;
width: 300px;
position: relative;
}
div span {
position: absolute;
top: 10px;
right: 10px;
font-size: 13px;
line-height: 1;
display: inline-block;
x-border: 2px solid #fff;
background-color: rgba(0,0,0,.5);
color: rgba(255,255,255,.9);
padding: 5px 6px;
border-radius: 6px;
-webkit-animation: throb 2s infinite;
animation: throb 2s infinite;
}
<link rel="stylesheet" href="http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css">
<div><span><i class="icon-facetime-video"></i></span></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