Pen Settings



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


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.


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.


                <div id="app">
  <div v-bind:class="[isShowing ? blurClass : '', clearClass]">
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce quis turpis nec ligula pellentesque cursus. Maecenas libero orci, ultrices nec blandit quis, malesuada id felis. Etiam tempus vitae neque vitae fringilla. Curabitur consectetur ante in malesuada mattis. Integer gravida mauris id hendrerit bibendum. Nulla erat mi, rutrum consectetur libero a, bibendum sagittis sem. Morbi pretium velit eget libero consequat pretium.</p>
    <button @click="toggleShow">Say Hello</button>
  <transition enter-active-class="animated zoomIn"
    leave-active-class="animated zoomOut">
    <modal v-if="isShowing" class="modal">
      <button @click="toggleShow">Close</button>



                body {
  display: flex;
  justify-content: center;

#app {
  text-align: center;
  margin: 60px;
  max-width: 370px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

button {
  background-color: white;
  border: 2px solid black;
  padding: 10px 15px;
  cursor: pointer;

h4 {
  margin: 0 0 15px;

.modal {
  background: cyan;
  color: black;
  padding: 20px;
  width: 100px;
  position: absolute;
  min-width: 200px;

.clear {
  transition: opacity 1s;

.blur {
  filter: blur(1px);
  opacity: 0.5;


                Vue.component('modal', {
  template: `<div>
    <h2>Hello Vue!</h2>

new Vue({
  el: '#app',
  data() {
    return {
      isShowing: false,
      clearClass: 'clear',
      blurClass: 'blur'
  methods: {
    toggleShow() {
      this.isShowing = !this.isShowing;