Last active
December 17, 2016 10:48
-
-
Save arangates/954ab98547c3e1f5c66c4db6b6ac6707 to your computer and use it in GitHub Desktop.
GLowing text css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
@import url(http://fonts.googleapis.com/css?family=Concert+One); | |
h1 { | |
animation:glow 10s ease-in-out infinite; | |
/* For less laggy effect, uncomment this: | |
animation:none; | |
-webkit-text-stroke:1px #fff; | |
=========== */ | |
} | |
* { box-sizing:border-box; } | |
body { | |
background:#0a0a0a; | |
overflow:hidden; | |
text-align:center; | |
} | |
figure { | |
animation:wobble 5s ease-in-out infinite; | |
transform-origin:center center; | |
transform-style:preserve-3d; | |
} | |
@keyframes wobble { | |
0%,100%{ transform:rotate3d(1,1,0,40deg); } | |
25%{ transform:rotate3d(-1,1,0,40deg); } | |
50%{ transform:rotate3d(-1,-1,0,40deg); } | |
75%{ transform:rotate3d(1,-1,0,40deg); } | |
} | |
h1 { | |
display:block; | |
width:100%; | |
padding:40px; | |
line-height:1.5; | |
font:900 8em 'Concert One', sans-serif; | |
text-transform:uppercase; | |
position:absolute; | |
color:#0a0a0a; | |
} | |
@keyframes glow { | |
0%{ text-shadow:0 0 30px red; } | |
10%{ text-shadow:0 0 30px forestgreen; } | |
25%{ text-shadow:0 0 30px orange; } | |
35%{ text-shadow:0 0 30px cyan; } | |
50%{ text-shadow:0 0 30px forestgreen; } | |
75%{ text-shadow:0 0 30px cyan; } | |
100%{text-shadow:0 0 30px yellow;} | |
} | |
h1:nth-child(2){ transform:translateZ(5px); } | |
h1:nth-child(3){ transform:translateZ(10px);} | |
h1:nth-child(4){ transform:translateZ(15px); } | |
h1:nth-child(5){ transform:translateZ(20px); } | |
h1:nth-child(6){ transform:translateZ(25px); } | |
h1:nth-child(7){ transform:translateZ(30px); } | |
h1:nth-child(8){ transform:translateZ(35px); } | |
h1:nth-child(9){ transform:translateZ(40px); } | |
h1:nth-child(10){ transform:translateZ(45px); } | |
</style> | |
</head> | |
<body> | |
<figure> | |
<h1>coming soon</h1> | |
<h1>coming soon</h1> | |
<h1>coming soon</h1> | |
<h1>coming soon</h1> | |
<h1>coming soon</h1> | |
<h1>coming soon</h1> | |
<h1>coming soon</h1> | |
<h1>coming soon</h1> | |
<h1>coming soon</h1> | |
<h1>coming soon</h1> | |
<h1>coming soon</h1> | |
</figure> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment