123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

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.

            
              <form>

	<label for="pehlalabel">
		<input id="pehlalabel" type="radio" name="tab" value="pehlalabel" checked>
		<div class="label first-label">What??</div>
		<div class="content">
			<h2>What is Lorem Ipsum?</h2>
			<p>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, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
			<p>It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
			<a href="http://codepen.io/mrdogra007/pens/popular/" target="_blank">See more free plugins</a>
		</div>
	</label>
	
	<label for="dusralabel">
		<input id="dusralabel" type="radio" name="tab" value="dusralabel">
		<div class="label second-label">Why??</div>
		<div class="content">
			<h2>Why do we use it?</h2>
			<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.</p>
			<p>Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
			<a href="http://codepen.io/mrdogra007/pens/popular/" target="_blank">See more free plugins</a>
		</div>
	</label>
	
	<label for="tisralabel">
		<input id="tisralabel" type="radio" name="tab" value="tisralabel">
		<div class="label third-label">Where??</div>
		<div class="content">
			<h2>Where can I get some?</h2>
			<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.</p>
			<p>If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable.</p>
			<a href="http://codepen.io/mrdogra007/pens/popular/" target="_blank">See more free plugins</a>
		</div>
	</label>
	
</form>

<div class="about">
	<h1>Pure CSS based tabs plugin</h1>
	<p>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, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting.</p>
	<p>Looking for more free plugins, checkout my <a href="http://codepen.io/mrdogra007/pens/popular/" target="_blank">Codepen page</a> and need customization, ask me on Twitter <strong><a href="https://twitter.com/mrdogra007" target="_blank">@mrdogra007</a></strong></p>
	<p>Regards, <br>Nishant Dogra</p>
</div>
            
          
!
            
              h1 { font-size: 24px; color: #333;  margin-bottom: 20px;}
h2 { font-size: 20px; color: #333;  margin-bottom: 20px;}
p { font-size: 18px; font-weight: lighter; color: #676767; margin-bottom: 20px;}
a { font-size: 18px; color: #185bda;}

form { position: relative; max-width: 800px; background: #fff; margin: 40px auto 60px;}
.label { color: #9e9e9e; font-weight: normal; font-size: 18px; border-bottom: 1px solid #e1e1e1; } 
input[type=radio] { display: none;}
input[type=radio]:not(checked) ~ .content { display: none;}
input[type=radio]:checked ~ .content { display: block;}
input[type=radio]:checked ~ .label { color: #185bda;}

/* Active state and bars */
input[type=radio]:checked + .first-label::before { content: ''; position: absolute; height: 2px; width: 100%; background: #185bda; bottom: -2px; right: 0; transition: right 20ms;} 
input[type=radio]:not(checked) + .first-label::before { content: ''; width: 0; left: 0%; transition: left 20ms;}
input[type=radio]:checked + .second-label::before { content: ''; position: absolute; height: 2px; width: 100%; background: #185bda; bottom: -2px; left: 0; transition: left 20ms;}
input[type=radio]:not(checked) + .second-label::before { content: ''; width: 0; left: -100%; transition: left 20ms;}
input[type=radio]:checked + .third-label::before { content: ''; position: absolute; height: 2px; width: 100%; background: #185bda; bottom: -2px; left: 0; transition: left 20ms;}
input[type=radio]:not(checked) + .third-label::before { content: ''; width: 0; left: -100%; transition: left 20ms;}

input[type=radio] + .first-label:hover, 
input[type=radio] + .second-label:hover,
input[type=radio] + .third-label:hover { color: #185bda; background: #e6e6e6;}

.first-label, .second-label, .third-label { position: absolute; top: 0; padding: 12px 10px; width: 150px; text-align: center; background: #fafafa; z-index: 999;}
.first-label { left: 0;}
.second-label { left: 150px;}
.third-label { left: 300px;}

.content { position: relative; top: 60px; padding: 40px 20px; margin: 0 auto; box-sizing: border-box;}
.about { margin: 0 auto; max-width: 800px; border-top: 1px solid #e1e1e1; padding: 20px;}
            
          
!
            
              // Pure CSS based 3 tabs plugin
// Pure CSS based 3 tabs plugin designed for Force Framework, easy to plug and play
// Deigned by Nishant Dogra
// Created: 22/02/2019
// Twitter: @mrdogra007
// http://dograsweblog.com/drive/force-framework/
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console