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

              
                <div class="container">
   <ul class="inner-content">
    <!--Basaic panel -->
    <li><input id="tab-1" type="radio" name="tab-group" /><label for="tab-1">Basic Panel</label>
      <div class="back-btn"><input id="back-btn" type="radio" name="tab-group" /><label for="back-btn"><i class="material-icons">keyboard_backspace</i></label></div>
      <div class="panel-content">
        <h4>Basic Panel</h4>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum sit reprehenderit iusto harum minima. Assumenda, accusamus, perspiciatis inventore tempora qui pariatur quisquam? Deleniti, placeat ea nostrum officiis obcaecati temporibus quod.</p>
      </div>
    </li>
    <!--right panel -->
    <li class="right-panel"><input id="tab-2" type="radio" name="tab-group" /><label for="tab-2">Right-to-Left</label>
       <div class="back-btn"><input id="back-btn" type="radio" name="tab-group" /><label for="back-btn"><i class="material-icons">keyboard_backspace</i></label></div>
      <div class="panel-content">
        <h4>Right-to-Left</h4>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum sit reprehenderit iusto harum minima. Assumenda, accusamus, perspiciatis inventore tempora qui pariatur quisquam? Deleniti, placeat ea nostrum officiis obcaecati temporibus quod.</p>
      </div>
    </li>
    <!--Slide Up panel -->
    <li class="slide-up">
    <input id="tab-3" type="radio" name="tab-group" /><label for="tab-3">Slide Up</label>
       <div class="back-btn"><input id="back-btn" type="radio" name="tab-group" /><label for="back-btn"><i class="material-icons">highlight_off</i></label></div>
      <div class="panel-content">
        <h4>Slide Up</h4>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum sit reprehenderit iusto harum minima. Assumenda, accusamus, perspiciatis inventore tempora qui pariatur quisquam? Deleniti, placeat ea nostrum officiis obcaecati temporibus quod.</p>
      </div>
    </li>
    <!--Slide Down panel -->
    <li class="slide-down">
    <input id="tab-4" type="radio" name="tab-group" /><label for="tab-4">Slide Down</label>
       <div class="back-btn"><input id="back-btn" type="radio" name="tab-group" /><label for="back-btn"><i class="material-icons">highlight_off</i></label></div>
      <div class="panel-content">
        <h4>Slide Down</h4>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum sit reprehenderit iusto harum minima. Assumenda, accusamus, perspiciatis inventore tempora qui pariatur quisquam? Deleniti, placeat ea nostrum officiis obcaecati temporibus quod.</p>
      </div>
    </li>
  </ul>
  </div>


<div style="margin:40px;">More Articles visit<a href="https://shamkaja.github.io/" target="-blank"> Sham Kaja</a>
</div>
              
            
!

CSS

              
                body {
    font-family: 'Saira Semi Condensed', sans-serif;
    background: #ccc;
}
* {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
.container {
       background: #fff;
    border-radius: 10px;
    margin: 40px auto;
    width: 310px;
    height: 520px;
  position:relative;
  overflow:hidden;
}

.inner-content{
        height: 100%;
    width: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
  position:relative;
  
}
.inner-content li{
  background: #2196F3;
    width: 100%;
    margin: 10px 0;
    padding: 10px 0;
    color: #fff;
    text-align: center;
    
}
.inner-content label{
  width:100%;
  display:block;
  cursor: pointer;
}
.inner-content input {
    visibility: hidden;
    opacity: 0;
    position: absolute;
}
.back-btn{
  transition: all 0.3s ease-in-out;
    position: absolute;
    left: 100%;
    width: 100%;
    top: 0;
    background: #2196f3;
    z-index: 2;
    height: 45px;
   
}
.back-btn label{
   display: flex;
    align-items: center;
   height:100%;
 
}
.back-btn i{
  font-size:30px;
   margin-left:10px;
}
.inner-content input:checked ~ .back-btn{
  left:0;
}
.panel-content{
    transition: all 0.3s ease-in-out;
    position: absolute;
    left: 100%;
    width: 100%;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    color: #333;
    background: #EEEEEE;
    z-index: 1;
    text-align: left;
}



.panel-content h4{
  font-size:18px;
  margin:0 10px;
}

.panel-content p{
  margin:10px;
}


.inner-content input:checked ~ .panel-content{
  left:0;
}

.right-panel .panel-content,.right-panel .back-btn{
  left:inherit;
  right:100%;
  text-align: right;
  direction: rtl;
}

.inner-content .right-panel input:checked ~ .panel-content,.right-panel input:checked ~ .back-btn{
  right:0;
  left:inherit;
}

.right-panel .back-btn i {
    transform: rotate(180deg);
    margin-right: 10px;
}

.slide-up .panel-content,.slide-up .back-btn{
  top:100%;
  left:0;
}

.inner-content .slide-up input:checked ~ .panel-content,.slide-up input:checked ~ .back-btn{
  top:0;
 }

.slide-down .panel-content,.slide-down .back-btn{
      bottom: 100%;
    left: 0;
    top: inherit;
}

.inner-content .slide-down input:checked ~ .panel-content,.slide-down input:checked ~ .back-btn{
  bottom:0;
 }

              
            
!

JS

              
                
              
            
!
999px

Console