Pen Settings



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


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.


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.


                <div id="app">
<div class="block">
  <a class="button is-dark" v-ripple>Dark</a>
  <a class="button is-black" v-ripple>Black</a>
  <a class="button is-primary" v-ripple>Primary</a>
  <a class="button is-info" v-ripple>Info</a>
  <a class="button is-success" v-ripple>Success</a>
  <a class="button is-warning" v-ripple>Warning</a>
  <a class="button is-danger" v-ripple>Danger</a>


                @import url(");

html {
  padding: 40px;
  background: #222

.button {
  position: relative;
  overflow: hidden;

/*  Ripple */

.ripple {
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: scale(0);
  position: absolute;
  opacity: 1;
.ripple-effect {
    animation: ripple .4s linear;

@keyframes ripple {
  100% {
    transform: scale(2.5);
    opacity: 0;


                // Register a global custom directive called v-ripple
Vue.directive("ripple", {
  // When the bound element is inserted into the DOM...

  inserted: function(el) {

    // listen for click events to trigger the ripple
      function(e) {
        // Setup
    var target = el.getBoundingClientRect();
    var buttonSize = target.width > target.height ? target.width : target.height;
        // remove any previous ripple containers
        var elements = document.getElementsByClassName("ripple");
        while (elements[0]) {

        // create the ripple container and append it to the target element
        var ripple = document.createElement("span");
        ripple.setAttribute("class", "ripple");

        // set the ripple container to the click position and start the animation
        setTimeout(function() {
 = buttonSize + "px";
 = buttonSize + "px";
 = e.offsetY - buttonSize / 2 + "px";
 = e.offsetX - buttonSize / 2 + "px";
          ripple.setAttribute("class", "ripple ripple-effect");
        }, 100);

var app = new Vue({
  el: "#app",
  data: {
    message: "Hello Vue!"