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

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

              
                <h3>Hover on buttons to demo animations</h3>
<div class="row" id="animate">
  <a href="https://daneden.github.io/animate.css/">Animate.css</a>: &ensp;
  <button class="first">SlideInRight</button>
  <button class="second">Bounce</button>
  <button class="third">Rubber Band</button>
  <button class="fourth">Jello</button>
</div>
<div class="row" id="csshake">
  <a href="https://elrumordelaluz.github.io/csshake/">CSShake</a>: &ensp;
  <button class="shake-slow">Shake-slow</button>
  <button class="shake-little">Shake-little</button>
  <button class="shake-chunk">Shake-chunk</button>
  <button class="shake-rotate">Shake-rotate</button>
</div>
<div class="row" id="magic">
  <a href="https://www.minimamente.com/example/magic_animations/">Magic Animations</a>: &ensp;
  <button id="magic1">Magic</button>
  <button id="magic2">PuffIn</button>
  <button id="magic3">VanishIn</button>
  <button id="magic4">VanishOut</button>
</div>
<div class="row" id="hover">
  <a href="https://ianlunn.github.io/Hover/#effects">Hover.css</a>: &ensp;
  <button class="hvr-wobble-skew">Wobble skew</button>
  <button class="hvr-sweep-to-right">Sweep right</button>
  <button class="hvr-ripple-out">Ripple Out</button>
  <button class="hvr-underline-from-left">Underline Left</button>
</div>
              
            
!

CSS

              
                body {
  margin: 0;
  font-size: 30px;
}
h3 {
  width: 100%;
  text-align: center;
  font-size: 25px;
}
.row {
  width: 100%;
  height: 50px;
  margin: 25px;
  display: flex;
  align-items: flex-start;
  justify-content: left;
}
button {
  font-size: 20px;
  color: white;
  padding: 5px;
  margin: 0 5px;
  cursor: pointer;
  border: none;
}
#animate button {
  background-color: #9BD;
}
#csshake button {
  background-color: #BD9A79;
}
#magic button {
  background-color: #9A79BD;
}
#hover button {
  background-color: #79BD9A;
}
.hvr-ripple-out::before {
  border-color: #79BD9A;
}
              
            
!

JS

              
                var animationend = "mozanimationend webkitanimationend MSanimationend oanimationend animationend";

$('#animate button.first').on('mouseenter', function(){
  $(this).addClass('animated slideInRight').one(animationend, function(){$(this).removeClass('animated slideInRight')});
});
$('#animate button.second').on('mouseenter', function(){
  $(this).addClass('animated bounce').one(animationend, function(){$(this).removeClass('animated bounce')});
});
$('#animate button.third').on('mouseenter', function(){
  $(this).addClass('animated rubberBand').one(animationend, function(){$(this).removeClass('animated rubberBand')});
});
$('#animate button.fourth').on('mouseenter', function(){
  $(this).addClass('animated jello').one(animationend, function(){$(this).removeClass('animated jello')});
});

$('#magic1').on('mouseenter', function () {
  $(this).addClass('magictime magic').one(animationend, function(){$(this).removeClass('animated magic')});
});
$('#magic2').on('mouseenter', function () {
  $(this).addClass('magictime puffIn').one(animationend, function(){$(this).removeClass('animated puffIn')});
});
$('#magic3').on('mouseenter', function () {
  $(this).addClass('magictime vanishIn').one(animationend, function(){$(this).removeClass('animated vanishIn')});
});
$('#magic4').on('mouseenter', function () {
  $(this).addClass('magictime vanishOut').one(animationend, function(){$(this).removeClass('animated vanishOut')});
});
              
            
!
999px

Console