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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <div id="app">
  <p style="clear: both;"><button @click="show = !show">TOGGLE</button></p>
  <fade-transition duration="600">
    <div class="box" v-show="show">
      <p>Fade transition</p>
    </div>
  </fade-transition>
  <zoom-center-transition duration="600">
    <div class="box" v-show="show">
      <p>ZoomCenter transition</p>
    </div>
  </zoom-center-transition>
  <zoom-x-transition duration="600">
    <div class="box" v-show="show">
      <p>ZoomX transition</p>
    </div>
  </zoom-x-transition>
  <zoom-y-transition duration="600">
    <div class="box" v-show="show">
      <p>ZoomY transition</p>
    </div>
  </zoom-y-transition>
  <collapse-transition duration="600">
    <div class="box" v-show="show">
      <p>Collapse transition</p>
    </div>
  </collapse-transition>
  <scale-transition duration="600">
    <div class="box" v-show="show">
      <p>Scale transition</p>
    </div>
  </scale-transition>
  <slide-x-left-transition duration="600">
    <div class="box" v-show="show">
      <p>SlideXLeft transition</p>
    </div>
  </slide-x-left-transition>
  <slide-x-right-transition duration="600">
    <div class="box" v-show="show">
      <p>SlideXRight transition</p>
    </div>
  </slide-x-right-transition>
  <slide-y-up-transition duration="600">
    <div class="box" v-show="show">
      <p>SlideYUp transition</p>
    </div>
  </slide-y-up-transition>
  <slide-y-down-transition duration="600">
    <div class="box" v-show="show">
      <p>SlideYDown transition</p>
    </div>
  </slide-y-down-transition>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue2-transitions@0.3.0/dist/vue2-transitions.min.js"></script>

              
            
!

CSS

              
                .box {
  padding: 10px;
  border: dotted 1px;
  width: 10%;
  float: left;
  height:100px;
}
              
            
!

JS

              
                const FadeTransition = window['vue2Transitions'].FadeTransition;
const ZoomCenterTransition = window['vue2Transitions'].ZoomCenterTransition;
const ZoomXTransition = window['vue2Transitions'].ZoomXTransition;
const ZoomYTransition = window['vue2Transitions'].ZoomYTransition;
const CollapseTransition = window['vue2Transitions'].CollapseTransition;
const ScaleTransition = window['vue2Transitions'].ScaleTransition;
const SlideXLeftTransition = window['vue2Transitions'].SlideXLeftTransition;
const SlideXRightTransition = window['vue2Transitions'].SlideXRightTransition;
const SlideYUpTransition = window['vue2Transitions'].SlideYUpTransition;
const SlideYDownTransition = window['vue2Transitions'].SlideYDownTransition;

new Vue({
  el: '#app',
  components: {
    FadeTransition,
    ZoomCenterTransition,
    ZoomXTransition,
    ZoomYTransition,
    CollapseTransition,
    ScaleTransition,
    SlideXLeftTransition,
    SlideXRightTransition,
    SlideYUpTransition,
    SlideYDownTransition
  },
  data: {
    show: true
  }
});
              
            
!
999px

Console