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 class="plr">
	<div class="plr_in">
		<span class="letter one">
			<ul>
				<li>t</li>
				<li>w</li>
				<li>p</li>
				<li>l</li>
			</ul>
		</span>
		<span class="letter two">
			<ul>
				<li>a</li>
				<li>h</li>
				<li>o</li>
				<li>l</li>
			</ul>
		</span>
		<span class="letter three">
			<ul>
				<li>i</li>
				<li>a</li>
				<li>e</li>
				<li>a</li>
			</ul>
		</span>
		<span class="letter four">
			<ul>
				<li>n</li>
				<li>t</li>
				<li>a</li>
				<li>d</li>
			</ul>
		</span>
		<span class="letter five">
			<ul>
				<li>s</li>
				<li>k</li>
				<li>i</li>
				<li>&nbsp;</li>
			</ul>
		</span>
		<span class="letter six">
			<ul>
				<li>&nbsp;</li>
				<li>s</li>
				<li>e</li>
				<li>n</li>
			</ul>
		</span>
		<span class="letter seven">
			<ul>
				<li>&nbsp;</li>
				<li>g</li>
				<li>&nbsp;</li>
				<li>&nbsp;</li>
			</ul>
		</span>
	</div>
</div>

<h1 class="hello">That's it</h1>
              
            
!

CSS

              
                body {
	background: #fff;
	position: relative;
}
.hello {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	margin: auto;
	width: 310px;
	height: 50px;
	font-size: 28px;
	font-weight: bold;
	font-family: sans-serif;
	letter-spacing: 7px;
	text-align: center;
	color: #3498db;
	z-index: 100;
}
/* loader */
.plr {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	background: #3498db;
	transition: opacity 500ms ease;
}
.plr_in {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	width: 385px;
	height: 50px;
}
.letter {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 50px;
	overflow: hidden;
	text-align: center;
	color: #fff;
	border: 1px solid #fff;
	box-sizing: border-box;
}
.letter ul {
	margin: 0;
	padding: 0;
	list-style: none;
	box-sizing: border-box;
}
.letter ul li {
	font-size: 38px;
	text-transform: capitalize;
}
/* max 480px*/
@media (max-width: 480px) {
	.plr_in {
		width: 250px;
		height: 50px;
	}
	.letter {
		width: 30px;
		height: 50px;
	}
}
/* animations */
.one ul li {
	animation: one 10s infinite ease;
}
.two ul li {
	animation: two 10s infinite ease;
}
.three ul li {
	animation: three 10s infinite ease;
}
.four ul li {
	animation: four 10s infinite ease;
}
.five ul li {
	animation: five 10s infinite ease;
}
.six ul li {
	animation: six 10s infinite ease;
}
.seven ul li {
	animation: seven 10s infinite ease;
}

@keyframes one {
	0% {
		transform: translate(0px, -128px);
	}
	20% {
		transform: translate(0px, -128px);
	}
	40% {
		transform: translate(0px, -83px);
	}
	60% {
		transform: translate(0px, -40px);
	}
	80% {
		transform: translate(0px, 5px);
	}
	100% {
		transform: translate(0px, -128px);
	}
}
@keyframes two {
	0% {
		transform: translate(0px, -83px);
	}
	20% {
		transform: translate(0px, -83px);
	}
	40% {
		transform: translate(0px, -128px);
	}
	60% {
		transform: translate(0px, 5px);
	}
	80% {
		transform: translate(0px, -40px);
	}
	100% {
		transform: translate(0px, -83px);
	}
}
@keyframes three {
	0% {
		transform: translate(0px, -40px);
	}
	20% {
		transform: translate(0px, -40px);
	}
	40% {
		transform: translate(0px, -83px);
	}
	60% {
		transform: translate(0px, 5px);
	}
	80% {
		transform: translate(0px, -128px);
	}
	100% {
		transform: translate(0px, -40px);
	}
}
@keyframes four {
	0% {
		transform: translate(0px, -128px);
	}
	20% {
		transform: translate(0px, -128px);
	}
	40% {
		transform: translate(0px, -83px);
	}
	60% {
		transform: translate(0px, -40px);
	}
	80% {
		transform: translate(0px, 5px);
	}
	100% {
		transform: translate(0px, -128px);
	}
}
@keyframes five {
	0% {
		transform: translate(0px, -83px);
	}
	20% {
		transform: translate(0px, -83px);
	}
	40% {
		transform: translate(0px, 5px);
	}
	60% {
		transform: translate(0px, -128px);
	}
	80% {
		transform: translate(0px, -40px);
	}
	100% {
		transform: translate(0px, -83px);
	}
}
@keyframes six {
	0% {
		transform: translate(0px, -128px);
	}
	20% {
		transform: translate(0px, -128px);
	}
	40% {
		transform: translate(0px, -83px);
	}
	60% {
		transform: translate(0px, 5px);
	}
	80% {
		transform: translate(0px, -40px);
	}
	100% {
		transform: translate(0px, -128px);
	}
}
@keyframes seven {
	0% {
		transform: translate(0px, -40px);
	}
	20% {
		transform: translate(0px, -40px);
	}
	40% {
		transform: translate(0px, -128px);
	}
	60% {
		transform: translate(0px, 5px);
	}
	80% {
		transform: translate(0px, -83px);
	}
	100% {
		transform: translate(0px, -40px);
	}
}

              
            
!

JS

              
                const _ = (el) => document.querySelector(el);
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
// wait same seconds of css animation
sleep(8000)
  .then(() => (_(".plr").style.opacity = 0))
  .catch((e) => console.log(e))
  .finally(() => console.log("add opacity to 0"));
sleep(10000)
  .then(() => _(".plr").remove())
  .catch((e) => console.log(e))
  .finally(() => console.log("remove div"));
              
            
!
999px

Console