Skip to content

Instantly share code, notes, and snippets.

@CodeMyUI
Created Sep 6, 2017
Embed
What would you like to do?
Neon Text Effect
<div class="container">
<h1 class="neon">Everything you want is<br>on the other side of fear</h1>
</div>

Neon Text Effect

I saw this quote written in neon in the movie "Atomic Blonde" and I got inspired.

A Pen by Matt Smith on CodePen.

License.

:root {
font-size: calc(1vw + 1vh + 1.5vmin);
}
body {
background-color: #010a00;
background-image: url("https://www.transparenttextures.com/patterns/3px-tile.png");
font-size: 1rem;
}
h1 {
font-weight: 400;
text-align: center;
text-transform: uppercase;
}
.neon {
color: #fff;
text-shadow:
0 0 5px #fff,
0 0 10px #fff,
0 0 20px #fff,
0 0 40px #0ff,
0 0 80px #0ff,
0 0 90px #0ff,
0 0 100px #0ff,
0 0 150px #0ff;
}
<link href="https://rawgit.com/AllThingsSmitty/e42d5dbd4f548b2a4ddbf442627a897f/raw/7bff268eb57a48dee44f23ffd14b4ea146db162b/flexbox-center-container.css" rel="stylesheet" />
<link href="https://rawgit.com/AllThingsSmitty/8fb1b38c77ddd4357287f242f07c7797/raw/80da7234eaa5a4bb7e27c06c41dd0717ff4f1c93/system-fonts.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment