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.


                <link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">

<body class="sans-serif black pa4">
  <script id="dropdown" type="x/template">
      <a href="#" v-on:click.prevent="showDropDown=!showDropDown" class="mr2 f6 link br1 bw1 ba ph3 pv1 dib black-40 flex items-center justify-center w4">
  <img src="" class="br-100 ba b--black-10 h2 w2 mh2" alt="avatar">
 <i :class="{ 'fa-caret-up': showDropDown, 'fa-caret-down': !showDropDown }" class="fa" aria-hidden="true"></i></a>
      <transition name="slide-fade">
        <div class="w4 mt1" v-if="showDropDown">
          <ul class="menu list pl0 pa0 ma0">
            <li v-for="link in links" class="list">
              <a href="#" class="dd-link pointer hover-bg-moon-gray">{{}}</a>

  <div id="app">


                @import (less) "//";

.menu {

.menu li {

  &:not(:last-child) {

.dd-link {

.slide-fade-enter-active {
  transition: all .3s ease;
.slide-fade-leave-active {
  transition: all .2s ease;
.slide-fade-enter { 
  transform: translateY(-50px);
  opacity: 0;
.slide-fade-leave-to {
 transform: translateY(-50px);
  opacity: 0; 



                const DropDown = Vue.component("dropdown", {
  template: "#dropdown",
  data() {
    return {
      showDropDown: true,
      links: [
          name: "Account"
          name: "Profile"
          name: "Logout"

let App = new Vue({
  el: "#app",
  components: {