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="tab">
    <ul class="tab__title">
      <li @click="activate(1)" :class="{'active' : isActive === 1}">🐸</li>
      <li @click="activate(2)" :class="{'active' : isActive === 2}">🌸</li>
      <li @click="activate(3)" :class="{'active' : isActive === 3}">🌕</li>
    <ul class="tab__content">
      <li v-if="isActive === 1">古池や蛙飛びこむ水の音</li>
      <li v-else-if="isActive === 2">散る桜残る桜も散る桜</li>
      <li v-else-if="isActive === 3">名月をとってくれろと泣く子かな</li>

<script src=""></script>



  margin: 0
  padding: 0
  box-sizing: border-box

  background: #fafbfc
  padding: 10px
  color: #333
    margin-bottom: 1em

  width: 100%
  max-width: 600px
  margin: 0 auto
  padding: 20px
  background: white
  box-shadow: 0 1px 3px rgba(0,0,0,.1)
    list-style: none
        display: flex
          text-align: center
          width: 30.333%
          margin: 0 1.5%
          padding: .5em
          border: 1px solid #eee
          border-radius: 30px
            background: #eee
        margin: 30px 0
        padding: 1em
        background: whitesmoke
        text-align: center


                let vm = new Vue({
  el: '#app',
  data: {
    isActive: 1
  methods: {
      this.isActive = num;