Pen Settings

HTML

CSS

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                <title>AniJS ScrollReveal</title>
<head>
    <link rel="stylesheet" href="https://anijs.github.io/lib/anicollection/anicollection.css" />

</head>
<body>
  
  <!-- The example -->
 <div class="container center">
    <p class="scroll-me">Just scroll the window ;)</p>
   <div class="sentences" data-anijs="if:mouseover, do: bounce animated, to: .learn">
   <p>
     *
    <span class="anijs-if anijs-reserved-word">If</span>
    <span>scroll,</span>
    <span class="anijs-on anijs-reserved-word">On</span>
    <span>window,</span>
    <span class="anijs-do anijs-reserved-word">Do</span>
    <span class="do-value">rollIn animated</span>
    <span class="anijs-to anijs-reserved-word">To</span>
    <span class="to-value">.orange,</span>
    <span class="anijs-do anijs-reserved-word">Before</span>
    <span class="do-value">$scrollReveal</span>
   </p>
 
 </div> 
   
     <div class="item orange" 
         data-anijs="if: scroll, on: window, do: rollIn animated, before: $scrollReveal repeat">
      <i class="fa fa-behance"></i>
    </div>
    <div class="item pink"
      data-anijs="if: scroll, on: window, do: bounceIn animated, before: $scrollReveal">
      <i class="fa fa-pinterest"></i>
    </div> 
    <div class="item green"
      data-anijs="if: scroll, on: window, do: rotateIn animated, before: $scrollReveal">
      <i class="fa fa-dribbble"></i>
    </div>
    <div class="item blue"
      data-anijs="if: scroll, on: window, do: rubberBand animated, before: $scrollReveal">
      <i class="fa fa-dropbox"></i>
    </div>
    <div class="item orange"
        data-anijs="if: scroll, on: window, do: rollIn animated, before: $scrollReveal">
        <i class="fa fa-html5"></i>
    </div>
    <div class="item pink"
      data-anijs="if: scroll, on: window, do: bounceIn animated, before: $scrollReveal">
      <i class="fa fa-wordpress"></i>
    </div> 
    <div class="item green"
      data-anijs="if: scroll, on: window, do: rotateIn animated, before: $scrollReveal">
      <i class="fa fa-reddit"></i>
    </div>
    <div class="item blue"
      data-anijs="if: scroll, on: window, do: rubberBand animated, before: $scrollReveal">
      <i class="fa fa-umbrella"></i>
    </div>
  </div>
  <!-- End example -->


  
<footer>
  <div class="pull-left margin-left">
    <a class="pure-button primary" href="https://codepen.io/darielnoel/pen/EHGdk?editors=110" target="_blank">
       <i class="fa fa-edit"></i> Edit
    </a>
    <a class="pure-button primary" href="https://codepen.io/darielnoel/share/zip/EHGdk/">
       <i class="fa fa-download"></i> Download
    </a>   
  </div>
  <span class="discover" data-anijs="if: mouseover,on: .tab-bar, do: bounceIn animated, after: $holdAnimClass" >
    Made using            <img src="https://anijs.github.io/assets/img/favicon.png" alt="" />
    <a href="https://anijs.github.io/" target="_blanck">AniJS</a>
  </span>
  <div class="pull-right margin-right">
   <a class="pure-button primary" href="https://codepen.io/collection/DFmkq" target="_blanck">
   <i class="fa fa-external-link"></i> More!!!
    </a> 
   </div>
 </footer>
 
  <div class="sticky learn">
    <h4>
      <i class="fa fa-mortar-board"></i>
      Learn AniJS
    </h4>
    <ul>
      <li><a href="https://github.com/anijs/anijs/wiki/Sentence-Definitions#if" target="_blanck">scroll</a></li>
      <li><a href="https://github.com/anijs/anijs/wiki/Listening-events-from-document-and-window" target="_blanck">window</a></li>
      <li><a href="https://github.com/anijs/anijs/wiki/Sentence-Definitions#Do" target="_blanck">animations</a></li>
      <li><a href="https://anijs.github.io/examples/scrollreveal/#using" target="_blanck">$scrollReveal</a></li>
      <li><a href="https://github.com/anijs/anijs/wiki/Writing-before-and-after-functions" target="_blanck">before</a></li>
    </ul>  
  </div>
  

<script src="https://anijs.github.io/lib/anijs/anijs.js"></script>
<script src="https://anijs.github.io/lib/anijs/helpers/scrollreveal/anijs-helper-scrollreveal.js"></script>
 </body>

              
            
!

CSS

              
                /*The CSS example*/
.item{
  padding: 100px;
  color: white;
  width: 70px;
  text-align: center;
  font-size: 3em;
  display: inline-block;
  margin-right:10px;
  margin-top: 10px;
}

.animated{
  display: inline-block;
}

.item i{
}

.blue{
  background-color: #3498db;  
}

.orange{
  background-color: #FBB44C;
}

.pink{
  background-color: #FC797A;
}

.green{
  background-color:#2ABB9B;
}

.container p.scroll-me{
  color: #888;
  padding: 40px 0px 50px 0px;
}

/*End CSS example*/

/*Other CSS*/
body{
  font-family: helvetica;
  font-size: 1.2em;
  margin: 0px; 
}

body a{
  color: #4183c4;
}

.container{ 
   margin-top: 50px;
   min-width: 300px;
   width: 50%;
}

.center{
  display: block;
  margin-left: auto;
  margin-right: auto;
  position:relative;
}


footer {
  color: rgba(236, 222, 209, 1);
  text-align: center;
  background: #eee;
  position: fixed;
  width: 100%;
  bottom: 0px;
  padding: 10px 0px;
}

.sentences{
  color: #7f8c8d;
  font-size: 0.8em;
  padding: 0px 20px;
  background: red;
  min-width: 300px;
  background: #eee;
  display: table;
  border-radius: 5px;
  margin-bottom: 60px;
}

.anijs-reserved-word {
  font-size: 1em;
  font-weight: bolder;
}

.anijs-if {
color: #D14;
}

.anijs-on {
color: #008080;
}

.anijs-do {
  color: #D56100;
}

.anijs-to {
  color: #4188D2;
}

.margin-right{
    margin-right: 50px;
}

.margin-left{
    margin-left: 50px;
}

.sticky {
  background: #F6F6F6;
  color: #666;
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 0px 15px;
  font-size: 80%;
  font-style: italic;
  border-radius: 5px;
}

.sticky.left{
  top: 20px;
  left: 0px;
  right: inherit;
  padding: 20px;
  width: 200px;
  font-size: 0.7em;
  border-radius: 0px 10px 10px 0px;
}

.sticky.left h4{
  font-size: 150%;
  -webkit-margin-before: 0em;
  -webkit-margin-after: 0.33em;
  text-align: left;
}

.sticky h4{
  text-align: center;
}

.sticky ul{
  list-style-type: disc;
  color: #4183c4;
  font-size: 90%;
}

.sticky ul li{
  margin-bottom:10px;
}

.discover{
  margin-left: -5%;
  color: #7f8c8d;
  font-size: 80%;
}

.discover img{
  width: 16px;
  height: 16px;
}

.pure-button {
  display: inline-block;
  zoom: 1;
  line-height: normal;
  white-space: nowrap;
  vertical-align: baseline;
  text-align: center;
  cursor: pointer;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 100%;
  padding: 0.5em 1.5em 0.5em;
  color: #444;
  color: rgba(0, 0, 0, 0.80);
  border: 1px solid #999;
  border: none rgba(0, 0, 0, 0);
  background-color: #E6E6E6;
  text-decoration: none;
  border-radius: 2px;
  -webkit-transition: 0.1s linear -webkit-box-shadow;
  -moz-transition: 0.1s linear -moz-box-shadow;
  -ms-transition: 0.1s linear box-shadow;
  -o-transition: 0.1s linear box-shadow;
  transition: 0.1s linear box-shadow;
  padding: 0.4em 1em;
  border-radius: 5px;
  font-size: 80%;
}

.pure-button.primary {
  background-color: #1f8dd6;
  color: white;
}

.pure-button.secondary {
  background: rgb(66, 184, 221);
  color: white;
}







              
            
!

JS

              
                
              
            
!
999px

Console