JSFiddle - React, Tailwind, and code Playground

Silky Smooth Navigation

by Jennifer Perrin

HTML

<section class="webdesigntuts-workshop">        
    <ul>            
        <li><a href="#">Cheese Sandwich</a></li>
        <li><a href="#">Melamine</a></li>
        <li><a href="#">Intrigue</a></li>
        <li><a href="#">Shrubbery</a></li>
      <li><a href="#">Chat</a></li>
  </ul>
</section>

CSS

@import url(http://fonts.googleapis.com/css?family=Lato);

.webdesigntuts-workshop {
  background: linear-gradient(#fcfcfc, #f6f6f6);
    border-bottom: 1px solid #eee;
    border-top: 1px solid #eee;
  box-shadow: inset 0 1px 0 #fff, 0 3px 15px #eee;
    font-family: 'Lato', helvetica, arial, sans-serif;
    height: 50px;
    margin: 40px 0 0;
    padding: 20px 0;
    text-align: center;    
}

.webdesigntuts-workshop ul {
    background: linear-gradient(#fafafa, #f1f1f1);
    border: 1px solid #eee;
    border-bottom-color: #ebebeb;
  border-radius: 10px 0 10px 0;
  box-shadow: inset 0 1px 0 #fff, 0 0px 0 1px #fff;
    display: inline-block;
    list-style: none;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.webdesigntuts-workshop ul:after {
  background: linear-gradient(left top, rgba(255,255,255,.1), rgba(255,255,255,.7));
    content: '';
    height: 46px;
    left: -50px;
    position: absolute;
    top: -32px;
  transform: rotate(-2.4deg);
    width: 120%;
    z-index: 1;    
}

.webdesigntuts-workshop li {
    float: left;
}

.webdesigntuts-workshop a {
    border-left: 1px solid #fff;
    border-right: 1px solid #eee;
    color: #888;
    display: block;
    font-size: 14px;
    height: 50px;
    line-height: 50px;
    padding: 0 35px;
    position: relative;
    text-decoration: none;
    text-shadow: 0 1px 0 #fff;
    transition: all 150ms linear;
    z-index: 2;        
}

.webdesigntuts-workshop a:focus {
    outline: 0;
}

.webdesigntuts-workshop li:first-child a {
    border-left: none;
    border-radius: 10px 0 0 0;
}

.webdesigntuts-workshop li:last-child a {
    border-right: none;
    border-radius: 0 0 10px 0;
}

.webdesigntuts-workshop ul:hover a {
    color: transparent;
    text-shadow: 0 0 5px #ccc;
}

.webdesigntuts-workshop ul:hover a:hover {
    background: #fafafa;
    color: #444;
    line-height: 43px;
    text-shadow: 0 1px 0 #fff;    
}

.webdesigntuts-workshop ul:hover a:active {
   ...