Pen Settings

HTML

CSS

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

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.

HTML

              
                <div class="loaders">
	<ol>
		<li>
			<div class="loftloader-wrapper pl-sun">
				<div class="loader">
					<span></span>
				</div>
			</div>
		</li>
		<li>
			<div class="loftloader-wrapper pl-circles">
				<div class="loader">
					<span></span>
				</div>
			</div>
		</li>
		<li>
			<div class="loftloader-wrapper pl-wave">
				<div class="loader">
					<span></span>
				</div>
			</div>
		</li>
		<li>
			<div class="loftloader-wrapper pl-square">
				<div class="loader">
					<span></span>
				</div>
			</div>
		</li>
		<li>
			<div class="loftloader-wrapper pl-frame">
				<div class="loader">
					<span></span>
				</div>
			</div>
		</li>
		<li>
			<div class="loftloader-wrapper pl-imgloading">
				<div class="loader">
					<span></span> <img alt="loftloader" src="http://imapo.ru/img/loftloader-logo.png">
				</div>
			</div>
		</li>
	</ol>
</div>
              
            
!

CSS

              
                .loaders ol {
  padding: 0;
  margin-left: 2.5vw;
  list-style: none;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-flow: row wrap;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
}

.loaders ol li {
  position: relative;
  width: 31vw;
  height: 31vw;
  margin: 0 1vw 1vw 0;
  background: #FFF;
  transition: background 0.35s;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-flow: column wrap;
  -ms-flex-flow: column wrap;
  flex-flow: column wrap;
  -webkit-justify-content: center;
  justify-content: center;
  /* Spinning Sun */
  /* Luminous Circles */
  /* Wave */
  /* Spinning Square */
  /* Drawing Frame */
  /* Image Loading */
}

.loaders ol li:nth-child(3n) {
  margin-right: 0;
}

@media screen and (max-width: 768px) {
  .loaders ol li {
    width: 46vw;
    height: 46vw;
    margin: 0 3vw 3vw 0;
  }
  .loaders ol li:nth-child(2n) {
    margin-right: 0;
  }
  .loaders ol li:nth-child(3) {
    margin-right: 3vw;
  }
}

.loaders ol li:before {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
  display: block;
  width: 31vw;
  height: 28vw;
  content: "";
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 768px) {
  .loaders ol li:before {
    width: 46vw;
    height: 43vw;
  }
}

.loaders ol li .loader {
  position: relative;
  margin: 0 auto;
}

.loaders ol li .pl-sun .loader {
  width: 50px;
  height: 50px;
}

.loaders ol li .pl-sun .loader span,
.loaders ol li .pl-sun .loader span:before {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  background: #248ACC;
  opacity: 0.9;
  transform-origin: 50% 50%;
}

.loaders ol li .pl-sun .loader span {
  width: 50px;
  height: 50px;
  -webkit-animation: spinReturn 4s ease infinite;
  animation: spinReturn 4s ease infinite;
}

.loaders ol li .pl-sun .loader span:before {
  width: 100%;
  height: 100%;
  content: "";
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.loaders ol li .pl-circles .loader {
  width: 100px;
  height: 60px;
}

.loaders ol li .pl-circles .loader span,
.loaders ol li .pl-circles .loader:before,
.loaders ol li .pl-circles .loader:after {
  position: absolute;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.2;
  background: #248ACC;
}

.loaders ol li .pl-circles .loader span {
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-animation: lightUp 1.5s linear infinite 0.5s;
  animation: lightUp 1.5s linear infinite 0.5s;
}

.loaders ol li .pl-circles .loader:before,
.loaders ol li .pl-circles .loader:after {
  content: "";
}

.loaders ol li .pl-circles .loader:before {
  top: 50%;
  left: 0;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  -webkit-animation: lightUp 1.5s linear infinite;
  animation: lightUp 1.5s linear infinite;
}

.loaders ol li .pl-circles .loader:after {
  top: 50%;
  right: 0;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  -webkit-animation: lightUp 1.5s linear infinite 1s;
  animation: lightUp 1.5s linear infinite 1s;
}

.loaders ol li .pl-wave .loader {
  width: 50px;
  height: 30px;
}

.loaders ol li .pl-wave .loader span,
.loaders ol li .pl-wave .loader:before,
.loaders ol li .pl-wave .loader:after {
  position: absolute;
  display: block;
  width: 6px;
  height: 100%;
  background: #248ACC;
}

.loaders ol li .pl-wave .loader span {
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-animation: wave 0.9s linear infinite 0.3s;
  animation: wave 0.9s linear infinite 0.3s;
}

.loaders ol li .pl-wave .loader:before,
.loaders ol li .pl-wave .loader:after {
  content: "";
}

.loaders ol li .pl-wave .loader:before {
  top: 50%;
  left: 0;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  -webkit-animation: wave 0.9s linear infinite;
  animation: wave 0.9s linear infinite;
}

.loaders ol li .pl-wave .loader:after {
  top: 50%;
  right: 0;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  -webkit-animation: wave 0.9s linear infinite 0.6s;
  animation: wave 0.9s linear infinite 0.6s;
}

.loaders ol li .pl-square .loader {
  width: 50px;
  height: 50px;
  transform-origin: 50% 50%;
  -webkit-animation: spinReturn 4s ease infinite;
  animation: spinReturn 4s ease infinite;
}

.loaders ol li .pl-square .loader span {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 4px solid #248ACC;
  transform-origin: 50% 50%;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.loaders ol li .pl-frame .loader {
  width: 60px;
  height: 60px;
}

.loaders ol li .pl-frame .loader span {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.loaders ol li .pl-frame .loader span:before,
.loaders ol li .pl-frame .loader span:after {
  position: absolute;
  width: 4px;
  height: 100%;
  background: #248ACC;
  content: "";
}

.loaders ol li .pl-frame .loader span:before {
  top: auto;
  right: 0;
  bottom: 0;
  -webkit-animation: drawframeRight 4s linear infinite 0.5s;
  animation: drawframeRight 4s linear infinite 0.5s;
}

.loaders ol li .pl-frame .loader span:after {
  top: 0;
  bottom: auto;
  left: 0;
  -webkit-animation: drawframeLeft 4s linear infinite 1.5s;
  animation: drawframeLeft 4s linear infinite 1.5s;
}

.loaders ol li .pl-frame .loader:before,
.loaders ol li .pl-frame .loader:after {
  position: absolute;
  width: 100%;
  height: 4px;
  background: #248ACC;
  content: "";
}

.loaders ol li .pl-frame .loader:before {
  top: 0;
  right: 0;
  left: auto;
  -webkit-animation: drawframeTop 4s linear infinite;
  animation: drawframeTop 4s linear infinite;
}

.loaders ol li .pl-frame .loader:after {
  right: auto;
  bottom: 0;
  left: 0;
  -webkit-animation: drawframeBottom 4s linear infinite 1s;
  animation: drawframeBottom 4s linear infinite 1s;
}

.loaders ol li .pl-imgloading .loader {
  width: 76px;
  height: auto;
}

.loaders ol li .pl-imgloading .loader span {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 0%;
  background: url(http://www.loftocean.com/wp-content/uploads/2016/06/loftloader-logo.png) center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-animation: imgLoading 6s linear infinite;
  animation: imgLoading 6s linear infinite;
  transition: 0s;
}

.loaders ol li .pl-imgloading .loader img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.3;
}

.loaders ol:after {
  display: block;
  clear: both;
  content: "";
  position: relative;
}


/* Animations */

@-webkit-keyframes spinReturn {
  0% {
    -webkit-transform: rotate(0deg);
  }
  25% {
    -webkit-transform: rotate(225deg);
  }
  50% {
    -webkit-transform: rotate(180deg);
  }
  75% {
    -webkit-transform: rotate(405deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spinReturn {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(225deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(405deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes lightUp {
  0% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
  60% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.2;
  }
}

@keyframes lightUp {
  0% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
  60% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.2;
  }
}

@-webkit-keyframes wave {
  0% {
    height: 100%;
  }
  40% {
    height: 10%;
  }
  80% {
    height: 100%;
  }
  100% {
    height: 100%;
  }
}

@keyframes wave {
  0% {
    height: 100%;
  }
  40% {
    height: 10%;
  }
  80% {
    height: 100%;
  }
  100% {
    height: 100%;
  }
}

@-webkit-keyframes drawframeTop {
  0% {
    right: 0;
    left: auto;
    width: 100%;
  }
  12.5% {
    right: 0;
    left: auto;
    width: 0%;
  }
  50% {
    right: auto;
    left: 0;
    width: 0%;
  }
  62.5% {
    right: auto;
    left: 0;
    width: 100%;
  }
  100% {
    right: auto;
    left: 0;
    width: 100%;
  }
}

@keyframes drawframeTop {
  0% {
    right: 0;
    left: auto;
    width: 100%;
  }
  12.5% {
    right: 0;
    left: auto;
    width: 0%;
  }
  50% {
    right: auto;
    left: 0;
    width: 0%;
  }
  62.5% {
    right: auto;
    left: 0;
    width: 100%;
  }
  100% {
    right: auto;
    left: 0;
    width: 100%;
  }
}

@-webkit-keyframes drawframeBottom {
  0% {
    right: auto;
    left: 0;
    width: 100%;
  }
  12.5% {
    right: auto;
    left: 0;
    width: 0%;
  }
  50% {
    right: 0;
    left: auto;
    width: 0%;
  }
  62.5% {
    right: 0;
    left: auto;
    width: 100%;
  }
  100% {
    right: 0;
    left: auto;
    width: 100%;
  }
}

@keyframes drawframeBottom {
  0% {
    right: auto;
    left: 0;
    width: 100%;
  }
  12.5% {
    right: auto;
    left: 0;
    width: 0%;
  }
  50% {
    right: 0;
    left: auto;
    width: 0%;
  }
  62.5% {
    right: 0;
    left: auto;
    width: 100%;
  }
  100% {
    right: 0;
    left: auto;
    width: 100%;
  }
}

@-webkit-keyframes drawframeRight {
  0% {
    top: auto;
    bottom: 0;
    height: 100%;
  }
  12.5% {
    top: auto;
    bottom: 0;
    height: 0%;
  }
  50% {
    top: 0;
    bottom: auto;
    height: 0%;
  }
  62.5% {
    top: 0;
    bottom: auto;
    height: 100%;
  }
  100% {
    top: 0;
    bottom: auto;
    height: 100%;
  }
}

@keyframes drawframeRight {
  0% {
    top: auto;
    bottom: 0;
    height: 100%;
  }
  12.5% {
    top: auto;
    bottom: 0;
    height: 0%;
  }
  50% {
    top: 0;
    bottom: auto;
    height: 0%;
  }
  62.5% {
    top: 0;
    bottom: auto;
    height: 100%;
  }
  100% {
    top: 0;
    bottom: auto;
    height: 100%;
  }
}

@-webkit-keyframes drawframeLeft {
  0% {
    top: 0;
    bottom: auto;
    height: 100%;
  }
  12.5% {
    top: 0;
    bottom: auto;
    height: 0%;
  }
  50% {
    top: auto;
    bottom: 0;
    height: 0%;
  }
  62.5% {
    top: auto;
    bottom: 0;
    height: 100%;
  }
  100% {
    top: auto;
    bottom: 0;
    height: 100%;
  }
}

@keyframes drawframeLeft {
  0% {
    top: 0;
    bottom: auto;
    height: 100%;
  }
  12.5% {
    top: 0;
    bottom: auto;
    height: 0%;
  }
  50% {
    top: auto;
    bottom: 0;
    height: 0%;
  }
  62.5% {
    top: auto;
    bottom: 0;
    height: 100%;
  }
  100% {
    top: auto;
    bottom: 0;
    height: 100%;
  }
}

@-webkit-keyframes imgLoading {
  0% {
    width: 100%;
    height: 0%;
    opacity: 1;
  }
  95% {
    width: 100%;
    height: 100%;
    opacity: 1;
  }
  100% {
    width: 100%;
    height: 100%;
    opacity: 0;
  }
}

@keyframes imgLoading {
  0% {
    width: 100%;
    height: 0%;
    opacity: 1;
  }
  95% {
    width: 100%;
    height: 100%;
    opacity: 1;
  }
  100% {
    width: 100%;
    height: 100%;
    opacity: 0;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console