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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <h1>Animated Tab</h1>

<ul class="nav-tab">
  <li class="active"><a href="#tab1">tab1</a></li>
   <li><a href="#tab2">tab2</a></li>
  <li><a href="#tab3">tab3</a></li>
  <li><a href="#tab4">tab4</a></li>
</ul>
<div class="tab-content">
  <div id="tab1" class="tab-panel active">
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. <p>Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. </p>
  </div>
  <div id="tab2" class="tab-panel ">
    Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem.
  </div>
  <div id="tab3" class="tab-panel ">
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. 
  </div>
  <div id="tab4" class="tab-panel ">
    <h4>Nullam dictum felis eu pede mollis pretium. </h4>Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. <br> Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet.
  </div>
  
</div>
              
            
!

CSS

              
                @import "compass/css3";

*, *:after, *:before{
  box-sizing:border-box;
  -moz-box-sizing:border-box;
  -webkit-box-sizing:border-box;
}
body{font-family:arial; background:#D6CEBD}

$prime-bg : #4285F4;
$font-bg : #fff;

.nav-tab{
  list-style:none;
  padding:0;
  margin:0;
  background: $font-bg; 
  &:after{
    content:'';
    display:table;
    clear:both;
  }
  li{
    float:left;
     a {
      position: relative;
      padding:10px 25px;
      color:#777;
      text-decoration: none;
      display: inline-block;
       overflow: hidden;
       @include transition(.4s);
       z-index: 1;
      &:after{
        content: '';
        position: absolute;
        background: $prime-bg;
        z-index: -1;
        width:0;
        height: 0;
        @include border-radius(100%);
         @include transition(.35s);
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        right: 0;
        margin: auto;
      } 
       
    }
    &.active a {
      color:#fff;
      &:after{
        left: -50px;
        top: -50px;
         width:200px;
        height: 200px;
      }
    }
  }
} 
.tab-content{
  height: 300px;
  width: 100%;
  overflow-x: hidden;
  color:#fff;
  position: relative;
  @include transition(0.5s);
}
.tab-panel{
    padding:15px 25px;
    position: absolute;
    background:#4c4c4c;
    top: 0;
    bottom:0;
    left: 0;
    right: 0;
    width: 100%;
    @include transition(0.35s);
    @include transform(rotateY(90deg) translateZ(350px));
    @include backface-visibility (hidden);
    &.active{
      background: $prime-bg;
      @include transform(rotateY(0deg) translateZ(350px));
      @include backface-visibility (visible);
    }
}


              
            
!

JS

              
                $('.nav-tab a').click(function(){
  var tget = $(this).attr("href");
  $('.nav-tab li, .tab-panel').removeClass('active');
  $(this).parent().addClass('active');
  $(tget).addClass('active');
});
              
            
!
999px

Console