Pen Settings



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


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.


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.


                <!-- ハンバーガー -->
  <div id="HbButton" class="openbtn">
<!-- ハンバーガー -->


                /* ハンバーガーメニューのボックス */
  position: fixed;            /* 固定表示 */
	background:#666666;         /* 背景色 */
	cursor: pointer;            /* マウスカーソル指 */
  width: 50px;                /* 高さ */
  height:50px;                /* 横幅 */
	border-radius: 5px;         /* 角を丸める */
  right: 0px;                 /* 表示位置右 */
  top: 0px;                   /* 表示位置上 */
  margin: 12px;               /* 余白 */

/* ハンバーガーメニューの線を定義 */
.openbtn span{
    display: inline-block;      /* 要素内ブロック */
    position: absolute;         /* 絶対位置指定   */
    height:3px;                 /* 線の太さ       */
    width: 25px;                /* 線の長さ       */
	  background: #fff;           /* 線の色         */
    left: 12.5px;               /* 線の開始位置横 */

/* span (1)番目の要素に適用 */
.openbtn span:nth-of-type(1) {
	top:15px;                     /* 線の開始位置縦 */

/* span (2)番目の要素に適用 */
.openbtn span:nth-of-type(2) {
	top:23px;                     /* 線の開始位置縦 */

/* span (3)番目の要素に適用 */
.openbtn span:nth-of-type(3) {
	top:31px;                     /* 線の開始位置縦 */