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

              
                <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.18/vue.min.js"></script>
<div id="row">
        <div class="col-xs-12">
            <header>
                <nav class="navbar navbar-expand-lg navbar-light header">
                 
                  
                  <div class="collapse navbar-collapse" id="navbarNav">
                    <ul class="navbar-nav menu">
                      
                      <li class="nav-item">
                        <a class="nav-link">PERSONAL INFO</a>
                      </li>
                      <li class="nav-item" @mouseover="animalList = true" @mouseleave="animalList = false" >
                        <a class="nav-link menu-link-toggle" >PERSONAL FORM</a>
                        <ul class='dropdown-menu' v-if="animalList">
                          <li class='dropdown-menu-item'>
                            <a class='dropdown-menu-link'>DATA</a>
                          </li>
                          <li class='dropdown-menu-item'>
                            <a class='dropdown-menu-link'>FORM DATA</a>
                          </li>
                          <li class='dropdown-menu-item'>
                            <a class='dropdown-menu-link' >AUTOCOMPLETE</a>
                          </li>
                        </ul>
                      </li>
                      <li class="nav-item" @mouseover="serviceList = true" @mouseleave="serviceList = false">
                        <a class='nav-link menu-link menu-link-toggle' >SERVICES</a>
                        <ul class='dropdown-menu' v-if="serviceList">
                          <li class='dropdown-menu-item'>
                            <a class='dropdown-menu-link' >LA CRÉMATION PRIVÉE</a>
                          </li>
                          <li class='dropdown-menu-item'>
                            <a class='dropdown-menu-link' >PERSONAL S</a>
                          </li>
                          <li class='dropdown-menu-item'>
                            <a class='dropdown-menu-link'>COMPANY S</a>
                          </li>
                          <li class='dropdown-menu-item'>
                            <a class='dropdown-menu-link' >FULL S INFO</a>
                          </li>
                        </ul>
                      </li>
                      <li class="nav-item">
                        <a class="nav-link ">SHOP</a>
                      </li>
                      <li class="nav-item active">
                        <router-link class="nav-link" to="/devis">PRICES</router-link>
                      </li>
                      <li class="nav-item" @mouseover="contactList = true" @mouseleave="contactList = false">
                        <a class='menu-link nav-link menu-link-toggle' >CONTACT</a>
                        <ul class='dropdown-menu' v-if="contactList">
                          <li class='dropdown-menu-item'>
                            <a class='dropdown-menu-link'>MAIL</a>
                          </li>
                          <li class='dropdown-menu-item'>
                            <a class='dropdown-menu-link' >PHONE</a>
                          </li>
                        </ul>
                      </li> 
                    </ul>
                  </div>
              </nav>
            </header>
        </div>
    </div>
              
            
!

CSS

              
                html, body {
  background:  #009050;
}


.header {
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-item {
  padding: 25px;
  position: relative;
}

.nav-link:hover {
  color: white;
}

.menu-link-toggle {
  cursor: pointer;
}

.dropdown-menu {
  margin-top: 10px;
  list-style: none;
  position: absolute;
  padding: 1em 1.25em 0.5em 0.75em;
  background-color: white;
  width: max-content;
  box-shadow: 0px 14px 24px 0px rgba(0,0,0,0.21);
}

.dropdown-menu-item {
  margin: 20px 0 20px 0;
}

.dropdown-menu-link {
  font-size: 14px;
  font-weight: bold;
  color: red;
  text-decoration: none;
}

.head {
  font-size: 14px;
  color: red;
  font-weight: bold;
  text-decoration: none;
}



.nav-item:before {
  content: '';
  position: absolute;
  width: 30%;
  height: 3px;
  bottom: 30%;
  left: 35%;
  background: white;
  visibility: hidden;
  border-radius: 5px;
  transform: scaleX(0);
  transition: .25s linear;
}

.nav-item:hover:before,
.nav-item:focus:before {
  visibility: visible;
  transform: scaleX(1);

}

.dropdown-menu-link:before {
    content: '';
  position: absolute;
  width: 30%;
  height: 3px;
  bottom: 30%;
  left: 0%;
  background: #D53865;
  visibility: hidden;
  border-radius: 5px;
  transform: scaleX(0);
  transition: .25s linear;  
}

.dropdown-menu-link:hover:before,
.dropdown-menu-link:focus:before {
  visibility: visible;
  transform: scaleX(1);
}


.added {
  display: none;
}


              
            
!

JS

              
                
new Vue({
  el: "#row",
  data: {
    animalList: false,
    serviceList: false,
    contactList: false
  },
  methods: {
    
  }
});

              
            
!
999px

Console