cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div id="tabs">
  <ul id="accordion">
    <li>
      <a class="active" href="#tabs-1">   <div class="tag">
          <div class="icon">
            <div class="block">
              <div class="circle"></div>
            </div>
          </div>
          <span class="title">Feature One</span>
        </div>
      </a>
        <div class="addon fadein">
          <span>
            Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
          </span>
          <a class="para-a" href="#">Learn More</a>
        </div>
    </li>
    <li>
      <a href="#tabs-2">   <div class="tag">
          <div class="icon">
            <div class="block">
              <div class="circle"></div>
            </div>
          </div>
          <span class="title">Feature Two</span>
        </div>
      </a>
        <div class="addon">
          <span>
            Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
          </span>
          <a class="para-a" href="#">Learn More</a>
        </div>
    </li>
    <li>
      <a href="#tabs-3">   <div class="tag">
          <div class="icon">
            <div class="block">
              <div class="circle"></div>
            </div>
          </div>
          <span class="title">Feature Three</span>
        </div>
      </a>
        <div class="addon">
          <span>
            Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
          </span>
          <a class="para-a" href="#">Learn More</a>
        </div>
    </li>
  </ul>
  <div class="browser">
    <div class="top-bar">
      <div class="dot"></div>
      <div class="dot"></div>
      <div class="dot"></div>
    </div>
    <div id="tabs-1"></div>
    <div id="tabs-2"></div>
    <div id="tabs-3"></div>
  </div>
</div>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Open Sans:400,700|Montserrat');

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat';
  font-size: 13px;
  letter-spacing: 1px;
}

#tabs {
  width: 700px;
  display: flex;
  position: relative;
  margin: 0 auto;
  margin-top: 50px;
  height: auto;
  min-height: 200px;
  max-height: 600px;
  overflow: hidden;
}

ul {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style-type: none;
  vertical-align: top;
  width: 50%;
}

ul li a {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
  color: #3b3b3b;
  border-top: solid 2px #e9e9e9;
  padding: 20px 5px;
  z-index: 1;
  opacity: .5;
  -webkit-transition: 0.3s ease;
  -moz-transition: 0.3s ease;
  -o-transition: 0.3s ease;
  transition: 0.3s ease;
}

ul li:focus, a:focus {
  outline: none;
}

ul li:nth-child(1) a {
  border-top: none;
}

ul li a.active {
  opacity: 1;
}

.para-a {
  font-weight: bold;
  margin-top: 10px;
  padding: 0;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  border: none;
  font-family: 'Montserrat';
  color: #2b2b2b;
}

.tag {
  position: relative;
  width: 100%;
}

.icon {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
  background: #c7c7c7;
  border-radius: 100%;
  vertical-align: middle;
}

.block {
  position: absolute;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  border: solid 2px #7b7b7b;
  border-radius: 5px;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.circle {
  position: absolute;
  padding: 2px;
  border: solid 2px #7b7b7b;
  border-radius: 100%;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.title {
  display: inline-block;
  text-transform: uppercase;
  font-weight: bold;
  padding: 0 10px;
  vertical-align: middle;
  color: #7b7b7b;
}

.addon {
  position: relative;
  width: 80%;
  top: -25px;
  margin-left: 70px;
  letter-spacing: 0;
  font-size: 13px;
  color: #9b9b9b;
  opacity: 0;
  font-family: 'Open Sans';
}

.addon.fadein {
  opacity: 1;
}

.browser {
  width: 45%;
  height: 95%;
  position: absolute;
  border-style: solid;
  border-width: 2px 0 2px 2px;
  border-color: #7b7b7b transparent #7b7b7b #7b7b7b;
  right: 0;
  border-radius: 10px 0 0 10px;
  overflow: hidden;
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  line-height: 20px;
  background: #fff;
  border-bottom: solid 2px #7b7b7b;
  z-index: 2;
}

.dot {
  position: relative;
  display: inline-block;
  padding: 4px;
  background: #c7c7c7;
  border-radius: 100%;
}

.dot:nth-child(1) {
  margin-left: 7px;
}

#tabs-1, #tabs-2, #tabs-3 {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

#tabs-1 {
  background: #9b9b9b;
}

#tabs-2 {
  background: #c9c9c9;
}

#tabs-3 {
  background: #1b1b1b;
}
            
          
!
            
              $(function() {
  $("#tabs").tabs({
    show: { effect: "blind", direction: "right", duration: 300 }
  });
  $( "#accordion" ).accordion();

  var btn = $('#accordion li a');
  var wrapper = $('#accordion li');

  $(btn).on('click', function() {
    $(btn).removeClass('active');
    $(btn).parent().find('.addon').removeClass('fadein');
    
    $(this).addClass('active');
    $(this).parent().find('.addon').addClass('fadein');
  });
});
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console