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 class="scroll">下にスクロールして下さい</div>
<p class="text-animation">じゅんぺいブログ</p>


                .text-animation span {
  opacity: 0;
/* レイアウトのためのスタイル */
.text-animation {
  display: flex;
  font-size: 40px;
  justify-content: center;
  letter-spacing: .1em;
  margin-bottom: 100px;
  margin-top: 1000px;
.scroll {
  font-size: 30px;
  margin-top: 100px;
  text-align: center;


                $(function () {
  $(".text-animation").each(function () {
    // 1文字ずつ<span>で囲む
      .each(function () {
        if (this.nodeType == 3) {
            $(this).text().replace(/(\S)/g, "<span>$1</span>")
    // スクロールして要素が画面内に入ったら文字を表示
    $(this).on("inview", function () {
      // 1文字ずつ順番に表示(不透明にする)
      $(this).css({ opacity: 1 });
      for (var i = 0; i <= $(this).children("span").length; i++) {
          .delay(200 * i) // 文字間の時間
          .animate({ opacity: 1 }, 1000); // 全部表示されるまでの時間