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 class="heading">
  <h1>35 Ways to Disappear</h1>
  <h3>Hover over to see us in action!</h3>
</div>
<div class="container">
  <div class="bounceoutup">
    <button class="button">bounce out up</button>
  </div>
  <div class="bounceoutdown">
    <button class="button">bounce out down</button>
  </div>
  <div class="bounceout">
    <button class="button">bounce out</button>
  </div>
  <div class="bounceoutleft">
    <button class="button">bounce out left</button>
  </div>
  <div class="bounceoutright">
    <button class="button">bounce out right</button>
  </div>
  <div class="backoutdown">
    <button class="button">back out down</button>
  </div>
  <div class="backoutleft">
    <button class="button">back out left</button>
  </div>
  <div class="backoutright">
    <button class="button">back out right</button>
  </div>
  <div class="backoutup">
    <button class="button">back out up</button>
  </div>
  <div class="fadeout">
    <button class="button">fade out</button>
  </div>
  <div class="fadeoutdown">
    <button class="button">fade out down</button>
  </div>
  <div class="fadeoutdownbig">
    <button class="button">fade out down big</button>
  </div>
  <div class="fadeoutleft">
    <button class="button">fade out left</button>
  </div>
  <div class="fadeoutleftbig">
    <button class="button">fade out left big</button>
  </div>
  <div class="fadeoutright">
    <button class="button">fade out right</button>
  </div>
  <div class="fadeoutrightbig">
    <button class="button">fade out right big</button>
  </div>
  <div class="fadeoutup">
    <button class="button">fade out up</button>
  </div>
  <div class="fadeoutupbig">
    <button class="button">fade out up big</button>
  </div>
  <div class="fadeouttopleft">
    <button class="button">fade out top left</button>
  </div>
  <div class="fadeouttopright">
    <button class="button">fade out top right</button>
  </div>
  <div class="fadeoutbottomright">
    <button class="button">fade out bottom right</button>
  </div>
  <div class="fadeoutbottomleft">
    <button class="button">fade out bottom left</button>
  </div>
  <div class="flipoutX">
    <button class="button">flip out X</button>
  </div>
  <div class="flipoutY">
    <button class="button">flip out Y</button>
  </div>
  <div class="lightspeedoutright">
    <button class="button">light speed out right</button>
  </div>
  <div class="lightspeedoutleft">
    <button class="button">light speed out left</button>
  </div>
  <div class="rotateout">
    <button class="button">rotate out</button>
  </div>
  <div class="rollout">
    <button class="button">roll out</button>
  </div>
  <div class="zoomoutleft">
    <button class="button">zoom out left</button>
  </div>
  <div class="zoomoutdown">
    <button class="button">zoom out down</button>
  </div>
  <div class="zoomout">
    <button class="button">zoom out</button>
  </div>
  <div class="zoomoutup">
    <button class="button">zoom out up</button>
  </div>
  <div class="rotateoutdownleft">
    <button class="button">rotate out down left</button>
  </div>
  <div class="rotateoutdownright">
    <button class="button">rotate out down right</button>
  </div>
  <div class="zoomoutright">
    <button class="button">zoom out right</button>
  </div>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Work+Sans:600);

$duration: 2s;
$purple: #351c75;
$orange: #e69139;
$lightorange: #fce5cd;

body {
  background-color: $lightorange;
}

h1,
h3 {
  text-align: center;
  font-size: 38px;
  font-family: "Work Sans", sans-serif;
  color: $purple;
}

h3 {
  font-size: 20px;
  color: $orange;
}

p {
  font-size: 18px;
  font-family: "Work Sans", sans-serif;
  color: $purple;
}

button {
  font-size: 12px;
  font-family: "Work Sans", sans-serif;
  color: white;
  background-color: $purple;
  border-radius: 1em;
  height: 3em;
  width: 10em;
  border: none;
  outline: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.container {
  display: flex;
  flex-wrap: wrap;
  width: 60%;
  height: 100%;
  justify-content: space-around;
  //border-style: solid;
  padding: 0;
  margin: 40px auto;
  list-style: none;
  background: $lightorange;
}

.bounceoutup,
.bounceoutdown,
.bounceout,
.bounceoutleft,
.bounceoutright,
.backoutdown,
.backoutleft,
.backoutright,
.backoutup,
.fadeout,
.fadeoutdown,
.fadeoutdownbig,
.fadeoutleft,
.fadeoutleftbig,
.fadeoutright,
.fadeoutrightbig,
.fadeoutup,
.fadeoutupbig,
.fadeouttopleft,
.fadeouttopright,
.fadeoutbottomright,
.fadeoutbottomleft,
.flipoutX,
.flipoutY,
.lightspeedoutright,
.lightspeedoutleft,
.rotateout,
.rotateoutdownleft,
.rotateoutdownright,
.rotateoutupleft,
.rotateoutupright,
.rollout,
.zoomout,
.zoomoutdown,
.zoomoutleft,
.zoomoutright,
.zoomoutup {
  flex: 1 0 14%; // enforce 7 per row
  //width: 130px;
  height: 80px;
  text-align: center;
  user-select: none;
}

.bounceoutup:hover > button {
  animation: bounceOutUp $duration;
}

.bounceoutdown:hover > button {
  animation: bounceOutDown $duration;
}

.bounceout:hover > button {
  animation: bounceOut $duration;
}

.bounceoutleft:hover > button {
  animation: bounceOutLeft $duration;
}

.bounceoutright:hover > button {
  animation: bounceOutRight $duration;
}

.backoutdown:hover > button {
  animation: backOutDown $duration;
}

.backoutleft:hover > button {
  animation: backOutLeft $duration;
}

.backoutright:hover > button {
  animation: backOutRight $duration;
}

.backoutup:hover > button {
  animation: backOutUp $duration;
}

.fadeout:hover > button {
  animation: fadeOut $duration;
}

.fadeoutdown:hover > button {
  animation: fadeOutDown $duration;
}

.fadeoutdownbig:hover > button {
  animation: fadeOutDownBig $duration;
}

.fadeoutleft:hover > button {
  animation: fadeOutLeft $duration;
}

.fadeoutleftbig:hover > button {
  animation: fadeOutLeftBig $duration;
}

.fadeoutright:hover > button {
  animation: fadeOutRight $duration;
}

.fadeoutrightbig:hover > button {
  animation: fadeOutRightBig $duration;
}

.fadeoutup:hover > button {
  animation: fadeOutUp $duration;
}

.fadeoutupbig:hover > button {
  animation: fadeOutUpBig $duration;
}

.fadeouttopleft:hover > button {
  animation: fadeOutTopLeft $duration;
}

.fadeouttopright:hover > button {
  animation: fadeOutTopRight $duration;
}

.fadeoutbottomright:hover > button {
  animation: fadeOutBottomRight $duration;
}

.fadeoutbottomleft:hover > button {
  animation: fadeOutBottomLeft $duration;
}

.flipoutX:hover > button {
  animation: flipOutX $duration;
}

.flipoutY:hover > button {
  animation: flipOutY $duration;
}

.lightspeedoutright:hover > button {
  animation: lightSpeedOutRight $duration;
}

.lightspeedoutleft:hover > button {
  animation: lightSpeedOutLeft $duration;
}

.rotateout:hover > button {
  animation: rotateOut $duration;
}

.rotateoutdownleft:hover > button {
  animation: rotateOutDownLeft $duration;
}

.rotateoutdownright:hover > button {
  animation: rotateOutDownRight $duration;
}

.rotateoutupleft:hover > button {
  animation: rotateOutUpLeft $duration;
}

.rotateoutupright:hover > button {
  animation: rotateOutUpRight $duration;
}

.rollout:hover > button {
  animation: rollOut $duration;
}

.zoomout:hover > button {
  animation: zoomOut $duration;
}

.zoomoutdown:hover > button {
  animation: zoomOutDown $duration linear;
}

.zoomoutleft:hover > button {
  animation: zoomOutLeft $duration linear;
}

.zoomoutright:hover > button {
  animation: zoomOutRight $duration linear;
}

.zoomoutup:hover > button {
  animation: zoomOutUp $duration linear;
}

              
            
!

JS

              
                /* created with help from https://animate.style/  ❤️ */

              
            
!
999px

Console