Pen Settings



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


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


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.


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.


                <div id="nav-drawer">
  <input id="nav-input" type="checkbox" class="nav-unshown">
  <label class="nav-unshown" id="nav-close" for="nav-input"></label>
  <div id="nav-menu">
    <div class="nav-button"><label id="nav-open" for="nav-input"><span></span></label></div>
    <div class="content">ここに中身を入れる</div>


                #nav-drawer {
  position: relative;
  display: none;
  position: absolute;
  top: 0;
  right: -50px;
  width: 50px;
  height: 50px;
  background: #689EFB;/*ボックス背景色*/
  text-align: center;
  position: relative;
  bottom: 4px;/*テキスト下からの位置*/
  content: "open";
  position: relative;
  margin: 0 auto;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
#nav-open span, #nav-open span:before, #nav-open span:after {
  position: relative;
  height: 3px;/*線の太さ*/
  width: 25px;/*長さ*/
  border-radius: 3px;
  background: #fff;/*アイコン色*/
  display: block;
  content: '';
  transition: all 0.5s ease-in-out;/*アニメーションの速さ*/
#nav-open span:before{
  top: -10px;
#nav-open span:after{
  top: 7px;
#nav-close {
  display: none;/*はじめは隠しておく*/
  position: fixed;
  z-index: 99;
  top: 0;/*全体に広がるように*/
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0;
  transition: .3s ease-in-out;
#nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;/*最前面に*/
  width: 80%;/*右側に隙間を作る(閉じるカバーを表示)*/
  max-width: 330px;/*最大幅(調整してください)*/
  height: 100%;
  background: #fff;/*背景色*/
  transition: .3s ease-in-out;/*滑らかに表示*/
  transform: translateX(-100%);/*左に隠しておく*/
#nav-menu .content{
  overflow: auto;
  width: 95%;
  height: 95%;
  margin: 2.5%;
#nav-input:checked ~ #nav-close {
  display: block;/*カバーを表示*/
  opacity: .5;
#nav-input:checked ~ #nav-menu {
  transform: translateX(0%);/*中身を表示(右へスライド)*/
  box-shadow: 6px 0 25px rgba(0,0,0,.15);
#nav-input:checked ~ #nav-menu .nav-button #nav-open span:before{
  top: 0;
  transform: rotateZ(45deg) scale(4);
#nav-input:checked ~ #nav-menu .nav-button #nav-open span{
  transform: scale(0.25) rotateY(360deg);
#nav-input:checked ~ #nav-menu .nav-button #nav-open span:after{
  top: -3px;
  transform: rotateZ(-45deg) scale(4);
#nav-input:checked ~ #nav-menu .nav-button:after{
  content: "close";