JSFiddle - React, Tailwind, and code Playground

by kougiland

HTML

<figure>
	<h1>Glowing text</h1>
	<h1>Glowing text</h1>
	<h1>Glowing text</h1>
	<h1>Glowing text</h1>
	<h1>Glowing text</h1>
	<h1>Glowing text</h1>
	<h1>Glowing text</h1>
	<h1>Glowing text</h1>
	<h1>Glowing text</h1>
	<h1>Glowing text</h1>
	<h1>Glowing text</h1>
</figure>

CSS

@import url(http://fonts.googleapis.com/css?family=Concert+One);

h1 {
  -webkit-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 {
   -webkit-animation:wobble 5s ease-in-out infinite;
   -webkit-transform-origin:center center;
   -webkit-transform-style:preserve-3d;
}

@ -webkit-keyframes wobble {
  0%,100%{  -webkit-transform:rotate3d(1,1,0,40deg); }
  25%{  -webkit-transform:rotate3d(-1,1,0,40deg); }
  50%{  -webkit-transform:rotate3d(-1,-1,0,40deg); }
  75%{  -webkit-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;
}

@ -webkit-keyframes glow {
  0%,100%{ text-shadow:0 0 30px red; }
  25%{ text-shadow:0 0 30px orange; }
  50%{ text-shadow:0 0 30px forestgreen; }
  75%{ text-shadow:0 0 30px cyan; }
}

h1:nth-child(2){  -webkit-transform:translateZ(5px); }
h1:nth-child(3){  -webkit-transform:translateZ(10px);}
h1:nth-child(4){  -webkit-transform:translateZ(15px); }
h1:nth-child(5){  -webkit-transform:translateZ(20px); }
h1:nth-child(6){  -webkit-transform:translateZ(25px); }
h1:nth-child(7){  -webkit-transform:translateZ(30px); }
h1:nth-child(8){  -webkit-transform:translateZ(35px); }
h1:nth-child(9){  -webkit-transform:translateZ(40px); }
h1:nth-child(10){  -webkit-transform:translateZ(45px); }