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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                
<div class="bg">
  <div class="num">01</div>
<div class="sample1">
<div class="bl"></div>
<div class="bl"></div>
<div class="bl"></div>
<div class="bl"></div>
<div class="bl"></div>
<div class="bl"></div>
<div class="bl"></div>
<div class="bl"></div>
</div>
</div>
<div class="bg">
  <div class="num">02</div>
<div class="sample2">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>
<div class="bg">
  <div class="num">03</div>
  <div class="sample3"></div>
</div>

              
            
!

CSS

              
                .bg{
  background:#E1E6E8;
  width:200px;
  height:100px;
  margin:20px;
  float:left;
}
.num{
  background:#000000;
  color:#FFF;
  width:2em;
  height:1.4em;
  padding:0.1em 0.1em 0.1em 0.7em;
}
/*sample1*/
.sample1 {
position: absolute;
top: 30%;
left: 30%;
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
}
.sample1 .bl {
display: inline-block;
width: 10px;
height: 10px;
-webkit-transform: translateX(10px);
transform: translateX(0px);
-webkit-animation: loading13 6s infinite;
animation: loading13 6s infinite;
opacity: 0;
border-radius: 50%;
}
.sample1 .bl:nth-child(1) {
-webkit-animation-delay: .8s;
animation-delay: .8s;
background: #EC407A;
}
.sample1 .bl:nth-child(2) {
-webkit-animation-delay: .7s;
animation-delay: .7s;
background: #AB47BC;
}
.sample1 .bl:nth-child(3) {
-webkit-animation-delay: .6s;
animation-delay: .6s;
background: #7E57C2;
}
.sample1 .bl:nth-child(4) {
-webkit-animation-delay: .5s;
animation-delay: .5s;
background: #5C6BC0;
}
.sample1 .bl:nth-child(5) {
-webkit-animation-delay: .4s;
animation-delay: .4s;
background: #42A5F5;
}
.sample1 .bl:nth-child(6) {
-webkit-animation-delay: .3s;
animation-delay: .3s;
background: #29B6F6;
}
.sample1 .bl:nth-child(7) {
-webkit-animation-delay: .2s;
animation-delay: .2s;
background: #26C6DA;
}
.sample1 .bl:nth-child(8) {
-webkit-animation-delay: .1s;
animation-delay: .1s;
background: #26A69A;
}
@keyframes loading13 {
40% {
-webkit-transform: translateX(-20px);
transform: translateX(0px);
opacity: 0.7;
}
100% {
-webkit-transform: translateX(0px);
transform: translateX(-1000px);
opacity: 0;
}
}
/*sample2*/
.sample2 {
margin:30px 100px;
width: 40px;
height: 40px;
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
}
.sample2 span {
display: block;
position: absolute;
width: 50%;
height: 50%;
border-radius: 50%;
}
.sample2 span:nth-child(1) {
top: 0;
left: 0;
-webkit-animation: loading07_mv1 3s cubic-bezier(.11,.75,.48,.94) infinite;
animation: loading07_mv1 3s cubic-bezier(.11,.75,.48,.94) infinite;
background-color: rgba(76,207,224,0.75);
}
.sample2 span:nth-child(2) {
top: 0;
right: 0;
-webkit-animation: loading07_mv2 3s cubic-bezier(.11,.75,.48,.94) infinite;
animation: loading07_mv2 3s cubic-bezier(.11,.75,.48,.94) infinite;
background-color: rgba(174,213,129,0.75);
}
.sample2 span:nth-child(3) {
bottom: 0;
left: 0;
-webkit-animation: loading07_mv3 3s cubic-bezier(.11,.75,.48,.94) infinite;
animation: loading07_mv3 3s cubic-bezier(.11,.75,.48,.94) infinite;
background-color: rgba(255,213,79,0.75);
}
.sample2 span:nth-child(4) {
bottom: 0;
right: 0;
-webkit-animation: loading07_mv4 3s cubic-bezier(.11,.75,.48,.94) infinite;
animation: loading07_mv4 3s cubic-bezier(.11,.75,.48,.94) infinite;
background-color: rgba(240,98,146,0.75);
}
@-webkit-keyframes loading07_mv1 {
0% {
z-index: 10;
-webkit-transform: translate(0);
transform: translate(0);
}
25% {
-webkit-transform: translate(100%, 0);
transform: translate(100%, 0);
}
50% {
-webkit-transform: translate(100%, 100%);
transform: translate(100%, 100%);
}
75% {
z-index: 0;
-webkit-transform: translate(0, 100%);
transform: translate(0, 100%);
}
100% {
-webkit-transform: translate(0);
transform: translate(0);
}
}
@keyframes loading07_mv1 {
0% {
z-index: 10;
-webkit-transform: translate(0);
transform: translate(0);
}
25% {
-webkit-transform: translate(100%, 0);
transform: translate(100%, 0);
}
50% {
-webkit-transform: translate(100%, 100%);
transform: translate(100%, 100%);
}
75% {
z-index: 0;
-webkit-transform: translate(0, 100%);
transform: translate(0, 100%);
}
100% {
-webkit-transform: translate(0);
transform: translate(0);
}
}
@-webkit-keyframes loading07_mv2 {
0% {
-webkit-transform: translate(0);
transform: translate(0);
}
25% {
-webkit-transform: translate(0, 100%);
transform: translate(0, 100%);
}
50% {
z-index: 0;
-webkit-transform: translate(-100%, 100%);
transform: translate(-100%, 100%);
}
75% {
z-index: 10;
-webkit-transform: translate(-100%, 0);
transform: translate(-100%, 0);
}
100% {
-webkit-transform: translate(0);
transform: translate(0);
}
}
@keyframes loading07_mv2 {
0% {
-webkit-transform: translate(0);
transform: translate(0);
}
25% {
-webkit-transform: translate(0, 100%);
transform: translate(0, 100%);
}
50% {
z-index: 0;
-webkit-transform: translate(-100%, 100%);
transform: translate(-100%, 100%);
}
75% {
z-index: 10;
-webkit-transform: translate(-100%, 0);
transform: translate(-100%, 0);
}
100% {
-webkit-transform: translate(0);
transform: translate(0);
}
}
@-webkit-keyframes loading07_mv3 {
0% {
-webkit-transform: translate(0);
transform: translate(0);
}
25% {
z-index: 10;
-webkit-transform: translate(0, -100%);
transform: translate(0, -100%);
}
50% {
-webkit-transform: translate(100%, -100%);
transform: translate(100%, -100%);
}
75% {
-webkit-transform: translate(100%, 0);
transform: translate(100%, 0);
}
100% {
z-index: 0;
-webkit-transform: translate(0);
transform: translate(0);
}
}
@keyframes loading07_mv3 {
0% {
-webkit-transform: translate(0);
transform: translate(0);
}
25% {
z-index: 10;
-webkit-transform: translate(0, -100%);
transform: translate(0, -100%);
}
50% {
-webkit-transform: translate(100%, -100%);
transform: translate(100%, -100%);
}
75% {
-webkit-transform: translate(100%, 0);
transform: translate(100%, 0);
}
100% {
z-index: 0;
-webkit-transform: translate(0);
transform: translate(0);
}
}
@-webkit-keyframes loading07_mv4 {
0% {
-webkit-transform: translate(0);
transform: translate(0);
}
25% {
z-index: 0;
-webkit-transform: translate(-100%, 0);
transform: translate(-100%, 0);
}
50% {
z-index: 10;
-webkit-transform: translate(-100%, -100%);
transform: translate(-100%, -100%);
}
75% {
-webkit-transform: translate(0, -100%);
transform: translate(0, -100%);
}
100% {
-webkit-transform: translate(0);
transform: translate(0);
}
}
@keyframes loading07_mv4 {
0% {
-webkit-transform: translate(0);
transform: translate(0);
}
25% {
z-index: 0;
-webkit-transform: translate(-100%, 0);
transform: translate(-100%, 0);
}
50% {
z-index: 10;
-webkit-transform: translate(-100%, -100%);
transform: translate(-100%, -100%);
}
75% {
-webkit-transform: translate(0, -100%);
transform: translate(0, -100%);
}
100% {
-webkit-transform: translate(0);
transform: translate(0);
}
}
/*sample3*/
.sample3 {
margin:30px 100px;
width: 50px;
height: 50px;
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
border-radius: 50%;
background: radial-gradient(grey, #ffffff);
}
.sample3::after {
content: '';
position: absolute;
border-radius: 50%;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-animation: loading06 1s ease-out forwards infinite;
animation: loading06 1s ease-out forwards infinite;
}
@-webkit-keyframes loading06 {
20% {
width: 0;
height: 0;
border: 3px solid #ffffff;
}
100% {
width: 100%;
height: 100%;
border: 0 solid #ffffff;
}
}
@keyframes loading06 {
0% {
border: 0 solid #FFF;
}
20% {
width: 0;
height: 0;
border: 3px solid grey;
}
100% {
width: 100%;
height: 100%;
border: 0 solid black;
}
}
              
            
!

JS

              
                
              
            
!
999px

Console