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

+ 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">
  <button v-on:click="show = !show">
    {{ label }}
  <transition name="slide">
    <div v-if="show" class="panel">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nec tempor elit, non sagittis risus. Duis odio metus, vulputate id augue luctus, maximus elementum odio. Nunc vel auctor lacus, a tincidunt purus. Pellentesque sed nisi purus. Ut hendrerit odio sit amet lobortis scelerisque. Integer tortor enim, condimentum vitae ipsum ac, facilisis tincidunt ligula. Etiam at bibendum nulla, id faucibus enim. Aenean varius sagittis lorem, ut maximus diam gravida at.


                body {
  padding: 20px;
  font: 16px/1.4 sans-serif;
button {
  font-size: 1.25rem;
  padding: 10px;
  background: #0bd;
  color: #fff;
  border: none;
  cursor: pointer;
  outline: none;
button:hover {
  background: #0090aa;

.panel {
  background: #eee;
  padding: 18px;
  transform-origin: 0 0;

/* Animation */
.slide-enter-active, .slide-leave-active {
  transition: .5s;
.slide-enter, .slide-leave-to {
  transform: scaleY(0);


                new Vue({
  el: "#app",
  data: {
    show: true
  computed: {
    label: function() {
      return ? "閉じる" : "開く";