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 class="container">

  <section class="section01 scrollify">
    <div class="title">SECTION01</div>
    <div class="content">Once upon a time,<br>Cinderella had a step-mother and two step-sisters move into her house.<br>Each of them was cruel, and every day they did mean things to Cinderella.<br><br>One day, an invitation to a ball was delivered.<br>“You have to stay home!”<br>said her step-mother and step-sisters as they left.<br><br>As Cinderella was left crying, her Fairy Godmother appeared<br>and said, “I am going to help you.”<br>With a sparkle of her magic wand<br><br>a beautiful dress and a pumpkin carriage appeared!<br>“This magic will only last until midnight,” said the Fairy Godmother,<br><br>lastly giving her a pair of glass slippers.<br><br>When Cinderella arrived at the castle,<br>a handsome prince came up to her<br>and asked, “May I have this dance?”<br>The two of them were getting along wonderfully,<br><br>when “Bong!”<br>The clock struck midnight!<br><br>Cinderella rushed away to get home,<br>but lost one of her glass slippers on the stairs.<br><br>The next day, a servant from the castle came to the house.<br>“The Prince will marry whoever owns this glass slipper.”<br><br>“It’s mine! It’s mine!”<br>lied the two step-sisters.<br>But their feet were too big to fit!<br><br>Cinderella, of course, was a perfect fit.<br><br>Cinderella married the Prince<br>and they had a wonderful life together,<br>living happily ever after.

  <section class="section02 scrollify">
    <div class="title">SECTION02</div>

  <section class="section03 scrollify">
    <div class="title">SECTION03</div>

  <section class="section04 scrollify">
    <div class="title">SECTION04</div>


                /* scrollify.jsに関係する記述はここかから */
  width: 100%;
  height: 100vh;

  background-color: #ff7575;

  background-color: #75ff75;

  background-color: #ffff75;

  background-color: #75baff;
/* scrollify.jsに関係する記述はここまで */

/* セクションごとのタイトルはここから */
  font-size: 36px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 70px;
  width: fit-content;
  width: -moz-fit-content;
  width: -webkit-fit-content;

  font-size: 16px;
  font-family: 'Oswald', sans-serif;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  line-height: 1.5;
  padding-bottom: 50px;
  text-align: justify;
  width: fit-content;
/* セクションごとのタイトルはここまで */


  section:'.scrollify', //対象要素を指定
  easing: 'swing', // イージングを指定
  scrollSpeed: 600, // スクロール時の速度
  updateHash: false, // スクロール時アドレスバーのURLを更新