Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div id="glow_box">
 <p class="glow_text">
	<span class="inner">Your Long Touch Here...</span>
 </p>
</div>

              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  border: none;
}

*,
*::after,
*::before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  background-color: #111;
}

#glow_box {
	display: inline-block;
	width: 1080px;
	height: 88px;
	position: absolute;
	top: calc(50% - 44px);
	left: calc(50% - 540px);
	font-family: "Droid Sans", sans-serif;
	font-weight: 700;
	font-size:6vw; /* responsive text: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_responsive_text */
	line-height: 88px; /* the same as DIV container height to center the text */
	text-align: center;
	vertical-align: middle;
}

.glow_text {
	position: relative;
	background: transparent;
	color: #f5f5f5;
	font-variant: small-caps;
	letter-spacing: 0.05em;
	-o-text-overflow: clip;
	text-overflow: clip;
	text-shadow: none;
	
	transition: all 0.6s linear; /* vendorless fallback */
	-o-transition: all 0.6s linear; /* opera */
	-ms-transition: all 0.6s linear; /* IE 10 */
	-moz-transition: all 0.6s linear; /* Firefox */
	-webkit-transition: all 0.6s linear; /*safari and chrome */
}

.glow_text:hover {
  /*
	text-shadow:
    0 0 5px rgb(255, 255, 255, 1),
		0 0 10px rgb(255, 255, 255, 1),
		0 0 20px rgb(255, 255, 255, 1),
		0 0 30px rgb(255, 255, 255, 1),
    -1px 0 cyan,
    0 1px cyan,
    1px 0 cyan,
    0 -1px cyan;
  -webkit-text-stroke: 1px cyan;
  */
	text-shadow:
    0 0 5px rgb(255, 255, 255, 1),
		0 0 10px rgb(255, 255, 255, 1),
		0 0 20px rgb(255, 255, 255, 1),
		0 0 30px rgb(255, 255, 255, 1);
}

p.glow_text span.inner {
	position: relative;
	z-index: 2;
}

#glow_box p.glow_text span.inner {
	position: relative;
	content: 'Your Long Touch Here...';
	z-index: 2;
}
#glow_box:hover p.glow_text span.inner {
	display: none;
}
#glow_box:hover p.glow_text:after {
	position: relative;
	content: 'Glowing & Responsive Text!';
	z-index: 2;
	color: #111;
}

              
            
!

JS

              
                
              
            
!
999px

Console