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 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


Add Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import or require. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.


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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <!doctype html>
<html lang="ja" prefix="og:">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"  content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <link rel="stylesheet" href="" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <link rel="stylesheet" href="/css/style.css">

    <!-- OGP -->
    <meta property="og:title"       content="❗️" />
    <meta property="og:description" content="❗️" />
    <meta property="og:type"        content="❗️" />
    <meta property="og:url"         content="❗️" />
    <meta property="og:image"       content="❗️" />
    <meta property="og:site_name"   content="❗️" />
    <meta name="twitter:card"       content="summary_large_image" />


  <body id="body">
    <div id="wapper">

      <li>イージングプラグインは、<a href="" target="_blank">こちら</a></li>

      <a href="#wapper" class="pagetop"></a>

    <!-- JavaScript -->
    <script src="" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="crossorigin="anonymous"></script>
    <script src="" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
    <script src="" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
    <script src="" charset="utf-8"></script>
    <script src="" crossorigin="anonymous"></script>
    <script src="/js/script.js" charset="utf-8"></script>



//  style.sass

  outline: none !important;

  background: #ccc;
  padding-bottom: 2000px;

//  pagetop.sass

  width         : 50px;
  height        : 50px;
  z-index       : 555;
  background    : rgba(#fff,0.8);
  border-radius : 100px;
  position      : fixed;
  bottom        : 20px;
  right         : 20px;
  color         : #26404e;
  display       : none; //表示はJavaScriptで制御

    content     : "\f106";
    font-family : FontAwesome;
    font-weight : 900;
    font-size   : 25px;
    line-height : 1.0;
    position    : absolute;
    top         : 50%;
    left        : 50%;
    transform   : translate(-50%,-51%);
    background: rgba(#fff,1);

// 300px以上、下にスクロールしたら「ページの先頭に移動するボタン」を表示

$(window).scroll(function() {
  var y_current = $(document).scrollTop();
  if (300 < y_current) {
  } else {

$(function () {
  var time    = 600; // アニメーションの長さ
  var offsetY = 0;   // ヘッダー固定の場合は、その値を「マイナス値」で指定する

  $('body').on('click', 'a[href^="#"]', function () {
    var href;
    href = $(this).attr('href');
    if (href === '#') {
    $('html, body').animate({
      scrollTop: $(href).offset().top + offsetY
    }, {
        duration: time,
        easing: 'easeOutExpo'
    return false;