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

              
                .flexslider#slide1
  div.slider
    .col スライド0
    .col スライド1
    .col スライド2
    .col スライド3
    .col スライド4
    .col スライド5
    .col スライド6
    .col スライド7
    .col スライド8
    .col スライド9
    
              
            
!

CSS

              
                .slider{
  .col{
    display:flex !important;
    justify-content:center;
    align-items:center;
    min-height:90vh;
    &:nth-child(1){
      background:#D72638;
    }
    &:nth-child(2){
      background:#5C9EAD;
    }
    &:nth-child(3){
      background:#326273;
    }
    &:nth-child(4){
      background:#EEEEEE;
    }
    &:nth-child(5){
      background:#E39774;
    }
    &:nth-child(6){
      background:#957964;
    }
    &:nth-child(7){
      background:#D72638;
    }
    &:nth-child(8){
      background:#5C9EAD;
    }
    &:nth-child(9){
      background:#326273;
    }
    &:nth-child(10){
      background:#B592A0;
    }
  }
}

              
            
!

JS

              
                $(window).load(function() {
  $('#slide1').flexslider({
    //スライドを自動再生しない
    slideshow: false,
    //スライドアニメーションタイプ
    animation: "slide",
    //スライドする要素のclassを変更する
    selector: ".slider > .col",
    //アニメーションループ
    animationLoop: true,
    //スライドの幅
    itemWidth: 200,
    //スライド間隔
    itemMargin: 4,
    //表示するスライドの最小数 デバイスサイズが小さくてもこの数だけ表示される
    minItems: 2,
    //表示するスライドの最大数
    maxItems: 5,
    //スライドが動く数
    move:1
  });

});
              
            
!
999px

Console