Skip to content

Instantly share code, notes, and snippets.

@IgnetStudio
Created April 12, 2015 15:30
Show Gist options
  • Save IgnetStudio/1c40115b8842ee94a96f to your computer and use it in GitHub Desktop.
Save IgnetStudio/1c40115b8842ee94a96f to your computer and use it in GitHub Desktop.
Flickering Neon Bar Sign
<h1 id=neon-tubing>B<span>A</span>R</h1>
@keyframes neonspark {
0% { text-shadow: none; }
30% { text-shadow: 0 0 30px rgba(255,0,84,0.6); }
60% {
text-shadow: 0 0 30px rgba(255,0,84,0.6),
0 0 60px rgba(255,0,84,0.4);
}
80% { text-shadow: none; }
100% {
text-shadow: 0 0 30px rgba(255,0,84,0.6),
0 0 60px rgba(255,0,84,0.4),
0 0 100px rgba(255,0,84,0.2),
0 0 90px rgba(255,0,84,0.1);
}
}
@font-face{
font-family:'Neon80sRegular';
src: url('//demosthenes.info/assets/fonts/neon-webfont.woff') format('woff'),
url('/assets/fonts/neon-webfont.ttf') format('truetype');
font-weight:normal;
font-style:normal;
}
body { margin: 0; }
h1#neon-tubing {
padding: 6rem;
text-align: center;
color: rgba(255,200,200,0.8);
font-family: Neon80s, sans-serif;
font-size: 11rem; letter-spacing: 2rem;
background: url(brick-wall-texture-faded.jpg);
background-size: cover;
}
h1#neon-tubing {
margin: 0;
font-weight: 100;
background-image: radial-gradient(ellipse farthest-corner,rgba(0,0,0,0),rgba(0,0,0,0)),
url(//demosthenes.info/assets/images/brick-wall-texture-faded.jpg);
text-align: center;
font-family: Neon80sRegular, sans-serif;
color: #fee;
padding: 4rem;
text-transform: uppercase;
font-size: 6rem;
letter-spacing: 2rem;
animation: neonspark 1s 3s forwards;
text-shadow:
0 0 20px rgba(255,0,84,0.6),
0 0 40px rgba(255,0,84,0.4),
0 0 60px rgba(255,0,84,0.2),
0 0 80px rgba(255,0,84,0.1);
}
h1#neon-tubing span { animation: neonspark 4s 3s infinite; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment