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

              
                <input id="activar" name="activar" type="checkbox">
<div class="desplegable">
  <div class="contenido">
    <!-- Cualquier contenido aquí -->
    <link href="https://fonts.googleapis.com/css?family=Oswald:400" rel="stylesheet" type="text/css" />
    <ul class="iconmenu">
      <li><a class="falink" href="https://www.linkedin.com/in/oloman">Linkedin</a></li>
      <li><a class="fagoog" href="https://plus.google.com/+Oloblogger">Google+</a></li>
      <li><a class="fatwit" href="https://twitter.com/oloblogger">Twitter</a></li>
      <li><a class="faface" href="https://www.facebook.com/oloblogger">Facebook</a></li>
    </ul>
    <!-- Fin contenido -->
  </div>
  <label class="label" for="activar"></label>
</div>
<!-- Resto de la página -->
<header>
  <div class="cabecera">
    <img src="https://1.bp.blogspot.com/-XL4Br3tCL3g/U7PfReX_VcI/AAAAAAAAQpI/BmljEZJkH44/s1200/esperando.gif" />
  </div>
  <h1>Solapa #css abatible con clic</h1>
  (Ver explicación en <a href="https://www.oloblogger.com/2015/12/ocultar-mostrar-con-css-checked.html">Oloblogger</a>)
</header>

<section>
<p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse dapibus non odio fringilla eleifend. Sed ut aliquet felis. Mauris bibendum blandit quam in tristique. Maecenas non suscipit diam. Mauris dui quam, varius id commodo a, malesuada ut justo.
  </p>
  <p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse dapibus non odio fringilla eleifend. Sed ut aliquet felis. Mauris bibendum blandit quam in tristique. Maecenas non suscipit diam. Mauris dui quam, varius id commodo a, malesuada ut justo.
    Cras eget dolor mauris. Proin at mollis diam. Nam condimentum eros ac nunc vulputate adipiscing. Ut non metus placerat, euismod nisi id, scelerisque ante. Vivamus sed nisi sit amet risus volutpat pharetra ut sit amet purus. Proin ultricies turpis
    magna, quis venenatis dolor congue vel. Mauris quis ligula elementum, sollicitudin dui vitae, pellentesque lacus. Donec vel semper nulla, et fringilla libero. Cras et leo eu arcu adipiscing lobortis eu sed felis. Quisque hendrerit consectetur lorem,
    id eleifend mauris luctus eu.
  </p>
  <p>
    <img src="http://lorempixel.com/800/400/city/10"/>
  </p>
  <p>
    Aliquam lacus lorem, mollis in pellentesque vel, elementum ac arcu. Morbi quis ullamcorper felis. Pellentesque aliquet ultricies lorem, eu sollicitudin libero rhoncus sed. Praesent porttitor tellus vehicula elit eleifend, sed aliquet felis tincidunt.
    Vestibulum ullamcorper lorem non sapien suscipit, non congue tellus lobortis. Nulla quis ante vel risus aliquam scelerisque. Sed felis augue, luctus at elementum non, sagittis malesuada urna. Suspendisse congue hendrerit purus vitae dapibus. Vivamus
    sit amet sodales arcu. Etiam euismod urna eleifend lacus varius, eu dapibus justo feugiat. Donec suscipit vel erat at ullamcorper. Morbi ac accumsan ipsum, at bibendum nisi. In placerat feugiat orci tincidunt scelerisque. Maecenas justo metus, tincidunt
    et turpis a, sodales adipiscing tortor.
  </p>
  <p >
    Cras non ipsum sapien. Nunc lobortis, mi et iaculis ultricies, eros tellus tempor orci, vel lobortis eros leo nec nunc. Maecenas nec mi sed elit luctus volutpat in a libero. Nulla tellus est, posuere in magna a, fringilla porttitor augue. Ut rhoncus laoreet
    sapien in fermentum. Phasellus id velit eu ligula tristique ullamcorper. Curabitur vitae pulvinar dolor, vitae mollis ipsum. Pellentesque faucibus mi nec imperdiet pellentesque. Mauris est sapien, consequat id ipsum non, vulputate ullamcorper tortor.
    Phasellus sollicitudin diam ac eleifend posuere. Proin vulputate risus non nisi molestie aliquet. Sed ligula libero, scelerisque sed gravida quis, adipiscing non erat. Nunc pretium facilisis neque ut faucibus. Vestibulum interdum hendrerit justo,
    eu sodales leo pretium ac. Nunc malesuada fermentum nisl, ut elementum elit tincidunt eget. Suspendisse auctor convallis nibh nec volutpat.
  </p>
  
</section>

              
            
!

CSS

              
                #activar {
  display: none;
}

#activar ~ .desplegable {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 30px;
  overflow: hidden;
  text-align: center;
  transition: max-height 0.8s linear;
  z-index: 1;
}

#activar ~ .desplegable .contenido {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  border: 0;
  box-sizing: border-box;
  color: #fff;
  background: #000;
}

.label {
  position: relative;
  width: 200px;
  margin: 0 auto;
  padding: 5px 20px;
  line-height: 30px;
  font-size: 14px;
  box-sizing: border-box;
  color: orange;
  background: #000;
  border-radius: 0 0 20px 20px;
  text-align: center;
  font-family: Oswald;
  cursor: pointer;
}
#activar ~ .desplegable .label:before {
  content: "FOLLOW";
}

#activar:checked ~ .desplegable,
#activar:checked ~ .desplegable .contenido {
  max-height: 100%;
}

#activar:checked ~ .desplegable .contenido {
  padding: 30px 20px;
}

#activar:checked ~ .desplegable .label:before {
  content: "CERRAR";
}

/* Sólo formato para contenido */

body,
html {
  margin: 0;
  padding: 0;
  background: #ccc;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 20px;
}

.cabecera {
  width: 100%;
  height: 0;
  padding-bottom: 35%;
  overflow: hidden;
  position: relative;
}

header img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  margin: auto;
  padding: 0;
}

section {
  padding: 20px 40px;
  text-align: left;
}

section img {
  width: 100%;
  height: auto;
  margin: 0 0 10px 0;
}
h1 {
  display: block;
  margin: 10px auto 0;
  padding: 10px;
  text-align: center;
  font-size: 30px;
  line-height: 32px;
  letter-spacing: -2px;
  font-weight: bold;
  box-sizing: border-box;
}

ul.iconmenu {
  margin: 0 auto;
  padding: 0;
  text-align: center;
  font-size: 0;
}

ul.iconmenu li {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

ul.iconmenu li a {
  text-decoration: none;
  color: orange;
  padding: 0 10px;
  font-family: Oswald, sans-serif;
  font-size: 26px;
  line-height: 26px;
  box-sizing: border-box;
}

ul.iconmenu li a.falink {
  color: #007BB6;
}

ul.iconmenu li a.faface {
  color: #3C599F;
}

ul.iconmenu li a.fagoog {
  color: #DA2713;
}

ul.iconmenu li a.fatwit {
  color: #5DD7FC;
}

ul.iconmenu li a:hover {
  color: orange;
}
              
            
!

JS

              
                
$('img').smoove({
    offset : '40%'
  });

              
            
!
999px

Console