Skip to content

Instantly share code, notes, and snippets.

@samazgor
Created November 16, 2013 23:52
Show Gist options
  • Save samazgor/7507036 to your computer and use it in GitHub Desktop.
Save samazgor/7507036 to your computer and use it in GitHub Desktop.
A Pen by Sam Azgor.
<h1 data-title="Sam">Sam</h1>
body {
background-image: -webkit-radial-gradient(circle, #333, #222, #111, #000);
background-attachment: fixed;
}
h1 {
cursor: default;
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
width: 300px; height: 100px;
margin: auto;
font-family: sans-serif;
font-size: 300%;
color: rgba(255, 255, 255, .6);
font-weight: bold;
text-transform: uppercase;
line-height: 100px;
text-align: center;
letter-spacing: 10px;
}
h1:before,
h1:after {
content: attr(data-title);
position: absolute;
left: 0; right: 0;
opacity: .3;
-webkit-transition: .15s ease;
}
h1:before { -webkit-transform: skewX(10deg) scale(1.1); -webkit-animation: topShake .15s linear infinite; }
h1:after { -webkit-transform: skewX(-10deg) scale(1.1); -webkit-animation: bottomShake .15s linear infinite; }
@-webkit-keyframes topShake { 50% { -webkit-transform: skewX(-10deg); } }
@-webkit-keyframes bottomShake { 50% { -webkit-transform: skewX(10deg); } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment