Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ add another resource


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


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.


Save Automatically?

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.


                  <div class="loader">
		<div class="stripe"></div>
		<div class="stripe"></div>
		<div class="stripe"></div>
		<div class="stripe"></div>
		<div class="stripe"></div>
		<div class="stripe"></div>

  <section class="main">
    <h1>Welcome To My Site</h1>
      Lorem ipsum, dolor sit amet consectetur adipisicing elit. Iusto amet
      est, nihil laborum laboriosam quaerat exercitationem incidunt corrupti?
      Nam, harum?
    <a href="#" class="btn">Read More</a>


                @import url('|ZCOOL+KuaiLe&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

body {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #eee;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;

.main {
  text-align: center;
  width: 90%;
  opacity: 0;
  display: none;
  transition: opacity 1s ease-in;

.main h1 {
  font-size: 50px;
  margin-bottom: 10px;

.main p {
  font-size: 25px;
  color: #333;

.btn {
  display: inline-block;
  background: purple;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  margin-top: 15px;

.btn:hover {
  opacity: 0.9;

.loader {
	position: relative;

.stripe {
	position: absolute;
	left: 0;
	top: 0;
	display: inline-block;
	background-color: red;
	height: 0px;
	width: 0px;
	animation: grow 3s ease-in-out infinite;

.stripe:nth-child(2) {
	background-color: orange;
	animation-delay: 0.5s;

.stripe:nth-child(3) {
	background-color: yellow;
	animation-delay: 1s;

.stripe:nth-child(4) {
	background-color: green;
	animation-delay: 1.5s;

.stripe:nth-child(5) {
	background-color: blue;
	animation-delay: 2s;

.stripe:nth-child(6) {
	background-color: purple;
	animation-delay: 2.5s;

@keyframes grow {
	0% {
		transform: translateY(20px);
		width: 64px;
		height: 1px;
		margin-left: 8px;
	50% {
		width: 80px;
		height: 6px;
		margin-left: 0px;
	100% {
		transform: translateY(-20px);
		width: 64px;
		height: 1px;
		margin-left: 8px;


                const loader = document.querySelector('.loader');
const main = document.querySelector('.main');

function init() {
  setTimeout(() => { = 'none'; = 0; = 'block';
    setTimeout(() => { = 1
    }, 50);
  }, 6000);