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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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


  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="stylesheet" type="text/css" href="">
  <link rel="stylesheet" type="text/css" href="">
  <link rel="stylesheet" type="text/css" href="">


  <p class="caption">文章が続く中で<span class="cap" data-tippy-content="キャプションが入ります。">この文章にカーソルを合わせると</span>ツールチップが出ます</p>

  <button class="btn cap" data-tippy-content="<div class='inner-cap'><p>続きは会員登録をしたら読むことができます。</p><p>ツールチップにはHTMLも使えます。</p></div>">ボタン</button>

  <p class="caption">使用したライブラリ:<a href="" target="_blank"></a></p>

<script src=""></script>
<script src=""></script>


                @charset "UTF-8";

/*========= レイアウトのためのCSS ===============*/

body {
  width: 100%;
  height: 100vh;
  vertical-align: middle;
  padding: 10px 30px;

  background: url("") no-repeat
  background-size: cover;

p.caption {
  text-align: center;
  margin: 100px 0;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 1px 1px 2px #333;

.inner-cap p {
  font-size: 0.8rem;
  color: #333;

.btn {
  display: block;
  outline: none;
  color: #fff;
  width: 200px;
  border-radius: 10px;
  padding: 10px 50px;
  margin: 0 auto;
  background: linear-gradient(
    #3bade3 0%,
    #576fe6 25%,
    #9844b7 51%,
    #ff357f 100%
  text-shadow: 1px 1px 2px #333;

.btn:hover {
  transform: scale(0.9);

span {
  background: linear-gradient(transparent 60%, #ffff66 60%);
  cursor: pointer; /*カーソルを指マークに変更*/

a {
  color: #333;

a:hover {
  text-decoration: none;



                tippy(".cap", {
  placement: "top-start", //ツールチップの表示位置⇒top、top-start、top-end、right、right-start、right-end、bottom、bottom-start、bottom-end、left、left-start、left-end。指定をしなくてもtopに表示
  animation: "shift-toward-subtle", //ツールチップ出現の動き。動きを指定するにはから任意の動きを選び<head>内に読み込むことが必要。使用できる動き⇒shift-away、shift-away-subtle、shift-away-extreme、shift-toward、shift-toward-subtle、shift-toward-extreme、scale、scale-subtle、scale-extreme、perspective、perspective-subtle、perspective-extreme。指定をしなくてもfadeで表示
  theme: "light-border", //ツールチップのテーマの色。色を指定するにはからテーマを選び<head>内に読み込んで指定する。テーマの種類⇒light、light-border、material、translucent。指定をしなくても黒色で表示
  duration: 700 //ツールチップの出現の速さをミリ秒単位で指定