Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div id="wrp">
  <h1>記事タイトル</h1>
  <p>記事概要</p>
  
  <section class="sec1 animated">
  <h2>見出し1</h2>
  <p>うんぬんかんぬんうんぬんかんぬん<br>
    <span class="highlight">いろはにほへと</span>ちぬわを<br>
    うんぬんかんぬんうんぬんかんぬん<br>
    うんぬんかんぬんうんぬんかんぬん</p>
  </section>
  
  <section class="sec2 animated">
  <h2>見出し2</h2>
  <p>うんぬんかんぬんうんぬんかんぬん<br>
    うんぬんかんぬんうんぬんかんぬんうんぬん<br>
    かんぬんうんぬんかんぬん<br>
    <span class="highlight">じしんかみなりかじオヤジ</span>うんぬんかんぬん<br>
    かもなくふかもなく
    </p>
  </section>

  <section class="sec3 animated">
  <h2>見出し3</h2>
  <p>うんぬんかんぬんうんぬんかん<br>
    いーとはーぶのおかに<br>
    いろはにほへとちるぬわを<br>
    ぬんうんぬんかんぬんうんぬんかん<br>
    <span class="highlight">くまいぬいはくまいぬ</span>
    </p>
    <img class="kumainu animated" src="https://vanillachic-design.com/vdstyle/wp-content/uploads/2019/02/spux.jpg" alt="くまいぬ">
  </section>
</div>
              
            
!

CSS

              
                .highlight {
  background: linear-gradient(transparent 60%, #f7c6b0 0%);
  font-weight:bold;
}
#wrp{
  width:100%;
   padding:1%;
}
section{
  margin:5% 1%;
  opacity:0;
}
img.kumainu{
   opacity:0; 
}

              
            
!

JS

              
                $(function() {
  
  $('.sec1').on('inview',function(event,isInView){
    
    if (isInView) {
      var sec = $(this);
      setTimeout(function(){
      $(sec).addClass('fadeInUp');
      },500);
    }
  });
  
  $('.sec2').on('inview',function(event,isInView){
    if (isInView) {
      var sec = $(this);
      setTimeout(function(){
      $(sec).addClass('fadeInLeft');
      },500);
    }
  });
  $('.sec3').on('inview',function(event,isInView){
    if (isInView) {
      var sec = $(this);
      setTimeout(function(){
      $(sec).addClass('fadeInLeft');
      },500);
    }
  });
 
   $('.kumainu').on('inview',function(event,isInView){
    if (isInView) {
      var sec = $(this);
      setTimeout(function(){
      $(sec).addClass('bounceIn');
      },1500);
    }
  });
  
});
              
            
!
999px

Console