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

              
                <div class="wrapper">
  <div class="conBox">
    ▼step-start
    <div class="con start step">
    </div>
  </div>
  <div class="conBox">
    ▼step-end
    <div class="con end step">
    </div>
  </div>
  <div class="conBox">
    ▼steps(n, start)
    <div class="con steps_start step">
    </div>
  </div>
  <div class="conBox">
    ▼steps(n, end)
    <div class="con steps_end step">
    </div>
  </div>
  <div class="conBox">
    ▼ease
    <div class="con ease">
    </div>
  </div>
  <div class="conBox">
    ▼ease-in
    <div class="con ease-in">
    </div>
  </div>
  <div class="conBox">
    ▼ease-out
    <div class="con ease-out">
    </div>
  </div>
  <div class="conBox">
    ▼ease-in-out
    <div class="con ease-in-out">
    </div>
  </div>
  <div class="conBox">
    ▼linear
    <div class="con linear">
    </div>
  </div>
  <div class="conBox">
    ▼cubic-bezier
    <div class="con cubic-bezier">
    </div>
  </div>
  
</div>
              
            
!

CSS

              
                .wrapper{
  width:500px;
  margin:0 auto;
  position:relative;
}
.conBox{
  margin: 2% 0 0;
}
.con{
  height:30px;
  background:gray;
  animation: anime 3s infinite;
}
.step{
  background:red;
}

@keyframes anime{
  0%{
    width:0px;
  }
  70%{
    width:500px;
  }
  100%{
    width:500px;
  }
}


/* ease */
.ease{
  animation-timing-function: ease;
}
/* ease-in */
.ease-in{
  animation-timing-function: ease-in;
}
/* ease-out */
.ease-out{
  animation-timing-function: ease-out;
}
/* ease-in-out */
.ease-in-out{
  animation-timing-function: ease-in-out;
}
/* linear */
.linear{
  animation-timing-function: linear;
}
/* cubic-bezier */
.cubic-bezier{
  /*----------------------------
  cubic-bezier(x1, y1, x2, y2)
  x = 時間経過率(0~1.0) , y = 変化率(基本自由。負も可能)
  ----------------------------*/
  animation-timing-function: cubic-bezier(0.8, 2.5, 0.6, 0.2);
}
/* step-start */
.start{
  animation-timing-function: step-start;
}
/* step-end */
.end{
  animation-timing-function: step-end;
}
/* steps(n,start) */
.steps_start{
  animation-timing-function: steps(10, start); 
}
/* steps(n,end) */
.steps_end{
  animation-timing-function: steps(10, end);
}
              
            
!

JS

              
                
              
            
!
999px

Console