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.


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="stkr"></div>
  <div class="links">
    <div><a href="#" class="stkr-target">リンク1</a></div>
    <div><a href="#" class="stkr-target">リーーンク2</a></div>
    <div><a href="#" class="stkr-target">リーーーーンク3</a></div>

  <!-- JavaScript -->
  <script src="//"></script>


                    /* マウスストーカー */
      position: fixed;
      top: 0px;
      left: 0px;
      width: 25px;
      height: 25px;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 50%;
      transition: 0.2s;
      transition-timing-function: ease-out;
      pointer-events: none;
      z-index: 10;

    /* マウスストーカーに影響のない装飾CSS */
    *{ margin: 0;  padding: 0; }
    html, body{ width: 100%; height: 100%; }
    .links div{ margin: 20px 10px; }


                    // マウスストーカー関連の要素(任意で変更してください)
    const mouseStalker = "#stkr";           // マウスストーカーになる要素を指定
    const mouseTarget = ".stkr-target";     // リンクなどアクションを付けたい要素を指定
    const mouseStalkerArea = window;        // マウスストーカーが機能する要素を指定

    // 処理で使う変数たち
    const stkrSize = parseInt($(mouseStalker).css("width").replace(/px/, ""));
    const stkrPosX = parseInt($(mouseStalker).css("left").replace(/px/, ""));
    const stkrPosY = parseInt($(mouseStalker).css("top").replace(/px/, ""));
    const cssPosAjust = stkrPosX + (stkrSize / 2);
    let scale = 1;

    // 追従用の処理
        let x = e.clientX - cssPosAjust;
        let y = e.clientY - cssPosAjust;
          "transform": "translate(" + x + "px," + y + "px) scale(" + scale + ")",

    // リンクホバーの処理
      scale = 2;
      let x = e.clientX - cssPosAjust;
      let y = e.clientY - cssPosAjust;
        "transform": "translate(" + x + "px," + y + "px) scale(" + scale + ")",
    }, function(){
      scale = 1;