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.

            
              <div class="contenedor-tabs">

    	<span class="diana" id="una"></span>
			<div class="tab">
				<a href="#una" class="tab-e">Una</a>
				<div>
					<p><img src="https://2.bp.blogspot.com/-Ycpx_Jl2zBc/UG5BMFNpZWI/AAAAAAAACGo/ikysNYg5_q0/s1600/k.jpg" alt="sólo una pic para ilustrar" />Li Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores.</p>

					<p>At solmen va esser necessi far uniform grammatica, pronunciation e plu sommun paroles. Ma quande lingues coalesce, li grammatica del resultant lingue es plu simplic e regulari quam ti del coalescent lingues. Li nov lingua franca va esser plu simplic e regulari quam li existent Europan lingues.</p>
				</div>
			</div>

			<span class="diana" id="dos"></span>
			<div class="tab">
				<a href="#dos" class="tab-e">Dos</a>
				<div>
					<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores.</p>

					<p><img src="https://4.bp.blogspot.com/-Y_BPQRH_tDw/UHMgZdJlqII/AAAAAAAACVA/S73BrQnk-w4/s1600/avatar-anom.jpg" alt="sólo una pic para ilustrar" />Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?</p>
				</div>
			</div>

			<span class="diana" id="tres"></span>
			<div class="tab">
				<a href="#tres" class="tab-e">Tres</a>
				<div>
					<p> No officiis lobortis eam. Soluta laboramus mei cu, sea modo dicant eu, cu ius eius aperiri. An pro dicam contentiones. Duo amet lorem officiis ex, an legimus nusquam atomorum per, per cu erat ornatus. Nibh oratio eam eu. An lobortis sapientem delicatissimi mea, ex dicunt tacimates quo, nec ad aeque adipisci efficiantur.</p>

					<p> Pri ad quando suscipit conclusionemque, ad vel dico ubique. Et sit utinam apeirian. Ea nemore delicatissimi eos, cum adhuc dignissim ad, putent ocurreret has ut. Eos amet duis solet id, est ne prima nostro virtute, ea pri etiam recteque disputando. Enim dolorum vivendum at vel, vis odio consul te.</p>
       </div>
			</div>

			<span class="diana" id="cuatro"></span>
			<div class="tab">
				<a href="#cuatro" class="tab-e">Cuatro</a>
				<div>
					<p> Facer affert offendit ei his, pri ei illud reformidans. Labores eligendi omittantur ut mea, ne cum eirmod indoctum mnesarchum, ei ullum iuvaret molestiae vix. Oblique imperdiet intellegam vix ea. Unum vocent alienum usu ne, ius commodo vituperatoribus ne, ex illum primis nec.</p>

					<p> Mentitum convenire eam ei, stet omnis velit ex sit. Nusquam lobortis adversarium an est, ea nam oportere gubergren. In pro habeo admodum liberavisse, eu dicit nobis lobortis vix, pro ex liber offendit. Per impetus officiis forensibus no. Justo comprehensam cu quo, no veri iusto usu. Mazim gubergren eos an, usu labore ornatus vulputate ut, usu te magna expetendis referrentur.</p>
				</div>
			</div>
	</div>
            
          
!
            
                 @import url(https://fonts.googleapis.com/css?family=Nunito:700|Carme);
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.contenedor-tabs {
  width: 100%;
  max-width: 600px;
	margin: 80vh auto 0;
	position: relative;
}

span.diana {
	/*no jump */
	display: none;
	}

.tab div {
  background: #8AA9B8;
  width: 100%;
  position: absolute;
  top: 1rem;
  left: 0;
  padding: 1rem;
  font-size: 1.2rem;
  font-family: carme, sans-serif;
  color: #fff;
  line-height: 1.2;
  z-index: 5;
  opacity:0;
  border-radius: 0 5px 5px;
  transition: all 1s ease;
 }

.tab .tab-e {
  margin-top: -1rem;
  float: left;
  width: 20%;
  min-width: 85px;
  padding: 5px;
  background: #445;
  margin-right: 3px;
  text-decoration: none;
  font-family: nunito, sans-serif;
  font-size: 1.3rem;
  color: #dfdfdf;
  text-align: center;
  position: relative;
  border-radius: 5px 5px 0 0;
  transition: all .5s ease;
 }

a.tab-e:hover {
  color: #bbb;
 }
  p img {float: left; width: 20%;}
  
.diana:target + .tab div {
  opacity: 1;
	background: #8AA9B8;
  color: #fff;    
 }


.diana:target + .tab .tab-e {
  background: #8AA9B8;
  color: #f5f5f5;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  z-index: 2;
 }

@media screen and (max-width:370px)
 {
	.contenedor-tabs {
    width: 100%;
    min-width: 370px;
    margin: 2.5rem 0;
  }
  .tab div {
    font-size: 1rem;
    line-height: 1.1;
    padding: 1rem 5px;
    width: 100%;
  }  
  .tab .tab-e {
		font-size: 1rem;
		padding: .5rem 0;
    text-align: center;
    line-height: 1.5rem;
    width: 25%;
    margin-right: 0;
	}
 }
            
          
!
            
              //For ilustrate a post on my blog
            
          
!
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