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="con">
    ▼色変更
    <div class="miniCon color">
    </div>
  </div>
  <div class="con">
    ▼回転
    <div class="miniCon spin">
    </div>
  </div>
  <div class="con">
    ▼浮く
    <div class="miniCon float">
    </div>
  </div>
  <div class="con">
    ▼伸びる(横)
    <div class="miniCon width">
    </div>
  </div>
  <div class="con">
    ▼伸びる(縦)
    <div class="miniCon height">
    </div>
  </div>
  <div class="con">
    ▼線
    <div class="miniCon sen">
    </div>
  </div>
  <div class="con">
    ▼影
    <div class="miniCon shadow">
    </div>
  </div>
</div>
              
            
!

CSS

              
                .wrapper{
  display: block;
  width:100%;
  text-align:center;
  margin:0 auto;
}
.con{
  display: inline-block;
}
.miniCon{
  margin: 20px;
  width:100px;
  height:100px;
  background-color:black;
}

/****--------- 色変更 ---------****/
.color{
  transition: background-color 0.5s ease 0s;
}
.color:hover{
  background-color:red;
}

/****--------- 回転 ---------****/
.spin{
  transition: transform 0.5s ease 0s;
}
.spin:hover{
  transform:rotate(360deg);
}

/****--------- 浮く ---------****/
.float{
  transition: transform 0.2s ease 0s;
}
.float:hover{
  transform:translate(0, -10%) ;
}

/****--------- 伸びる(横) ---------****/
.width{
  transition: width 0.2s ease 0s;
}
.width:hover{
  width:120px ;
}

/****--------- 伸びる(縦) ---------****/
.height{
  transition: height 0.2s ease 0s;
}
.height:hover{
  height:120px ;
}

/****--------- 線 ---------****/
.sen{
  border: 2px black solid;
  box-sizing: border-box;
  transition: border 0.2s ease 0s;
}
.sen:hover{
  border: 10px red solid;
}

/****--------- 影 ---------****/
.shadow{
  transition: box-shadow 0.2s ease 0s;
}
.shadow:hover{
  box-shadow:10px 7px 0px 3px red;
}
              
            
!

JS

              
                
              
            
!
999px

Console