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><h1 data-text="I/O"><span data-text="I/O">I/O</span></h1></div>
              
            
!

CSS

              
                $purple: #1d2b38;

@font-face {
	font-family: 'Decovar Draw'; 
	src:url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/DecovarDRAW-VF.ttf');
}

h1 {
	margin: 0;
	font-size: 30vw;
	position: relative;
	font-weight: 400;
	letter-spacing: 1rem;
	font-family: "Decovar Draw"; 
	font-variation-settings: 'RSEC' 60.00;
	animation: draw 4s infinite;
	background: linear-gradient(to bottom, #a67d83 0%,#616cd3 20%,#84fafc 43%,#fdfbf3 60%,#f9f697 82%,#f4d186 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

h1::before {
	content: attr(data-text);
	width: 100%;
	position: absolute;
	left: 0;
	top: 0;
	z-index: -1;
	text-shadow: -1px -1px 0 $purple, 1px -1px 0 $purple, -1px 1px 0 $purple,
		1px 1px 0 $purple, 1px 0px 0px $purple, 0px 1px 0px $purple, 2px 1px 0px $purple,
		1px 2px 0px $purple, 3px 2px 0px $purple, 2px 3px 0px $purple, 4px 3px 0px $purple,
		3px 4px 0px $purple, 5px 4px 0px $purple, 3px 5px 0px $purple,
		6px 5px 0px $purple, -1px 2px 0 $purple, 0 3px 0 $purple, 1px 4px 0 $purple,
		2px 5px 0px $purple, 2px -1px 0 $purple, 3px 0 0 $purple, 4px 1px 0 $purple,
		5px 2px 0px $purple, 6px 3px 0 $purple, 7px 4px 0 $purple,  7px 5px 0 $purple;  	
}

span::before {
	content: attr(data-text);
	width: 100%;
	position: absolute;
	left: 0;
	top: 0;
	z-index: -3;
	transform: translate(10px, 5px);
	text-shadow: -1px -1px 0 $purple, 1px -1px 0 $purple, -1px 1px 0 $purple,
		1px 1px 0 $purple, 1px 0px 0px $purple, 0px 1px 0px $purple, 2px 1px 0px $purple,
		1px 2px 0px $purple, 3px 2px 0px $purple, 2px 3px 0px $purple, 4px 3px 0px $purple,
		3px 4px 0px $purple, 5px 4px 0px $purple, 3px 5px 0px $purple,
		6px 5px 0px $purple, -1px 2px 0 $purple, 0 3px 0 $purple, 1px 4px 0 $purple,
		2px 5px 0px $purple, 2px -1px 0 $purple, 3px 0 0 $purple, 4px 1px 0 $purple,
		5px 2px 0px $purple, 6px 3px 0 $purple, 7px 4px 0 $purple,  7px 5px 0 $purple;  	
}

h1::after {
	content: attr(data-text);
	width: 100%;
	position: absolute;
	left: 0;
	top: 0;
	transform: translate(10px, 5px);
	z-index: -2;
	background: linear-gradient(to bottom, #a67d83 0%,#616cd3 20%,#84fafc 43%,#fdfbf3 60%,#f9f697 82%,#f4d186 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: draw 4.1s infinite;

		
}

@keyframes draw {
	0% {font-variation-settings: 'DRAW' 1000;}
	50% {font-variation-settings: 'DRAW' 0;}
	100% {font-variation-settings: 'DRAW' 1000;}		
}

// Positioning - This is general CSS positioning to center the text in the page. It's not required for the text effect you can modify these however you like.
html {
	height: 100%;
}

body {
	background: radial-gradient(ellipse at center, #1d2b38 64%,#1f2e3a 100%);
	height: 100%;
}

div {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

h1 {
	display: flex;
	align-items: center;
	justify-content: center;
	align-content: center;
	text-align: center;
	
	&:after, &:before {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100%;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console