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

              
                <section>
  <div class="author">
    <a href="#" class="name">
      <img src="https://24.media.tumblr.com/avatar_d028594d38cc_48.png" class="circle" /><br/>
      Jonas Rabbe
    </a>
    <p>Some bio text that goes over several lines so that we have some text that can be used for showing how it works.</p>
    <p>And another line just to show it in greater detail.</p>
  </div>
<article>  
  <div class="article-content">
    <h2>Some title</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus mattis odio sit amet diam ultrices, sed ultrices metus fermentum. Vestibulum luctus, nunc non porta sollicitudin, est nibh iaculis mi, eu lacinia purus felis at ligula. Praesent id orci eros. Proin tincidunt bibendum ligula, sed placerat quam vehicula vel. Maecenas euismod tortor id turpis viverra, sed eleifend nulla egestas. Fusce fermentum ullamcorper nisl, sed volutpat metus scelerisque nec. Nulla pulvinar, lorem eu dictum rhoncus, tortor nulla consequat orci, ac sagittis est sem et arcu. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p>

<p>Sed euismod rhoncus gravida. In elementum eros sed lorem iaculis pellentesque. Duis tincidunt ut mauris et condimentum. Ut pretium auctor nunc placerat vulputate. Quisque id arcu et velit fermentum scelerisque sed sit amet nisi. Maecenas adipiscing ullamcorper venenatis. Nam ornare justo scelerisque augue scelerisque, vel adipiscing sapien euismod. Proin non tortor posuere, vulputate tortor at, molestie nibh. Nullam in arcu vitae quam elementum congue at nec dui. In id scelerisque felis, ut dapibus diam.</p>

<p>Proin tincidunt dui a placerat adipiscing. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum at iaculis nibh. Praesent faucibus purus eget libero ultricies gravida. Mauris mauris dui, consectetur quis facilisis vel, ullamcorper sed nibh. Praesent malesuada urna metus, sit amet eleifend lorem adipiscing sed. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aenean massa massa, pellentesque eget vehicula in, tempus ut sapien.</p>

<p>Aliquam condimentum sapien lectus, in mattis velit porttitor sed. Cras porta dictum ligula et congue. Curabitur rhoncus massa justo, vel gravida enim suscipit at. Nulla varius, turpis quis aliquet posuere, justo turpis fringilla risus, sed semper justo lacus nec neque. Duis semper urna at volutpat mattis. Nullam ac convallis sem, non adipiscing nunc. Quisque suscipit varius mauris, vel tempor nunc posuere quis. Fusce scelerisque auctor feugiat. Curabitur eleifend fringilla odio vitae commodo. Vivamus rutrum sed mauris eu hendrerit.</p>

    <p>Quisque massa nunc, ultricies in ligula eget, commodo convallis dui. Nulla consequat neque eget congue adipiscing. Phasellus tempus viverra urna quis tempor. Duis vestibulum vel lacus at tincidunt. Cras at dolor tincidunt, laoreet mauris sit amet, fermentum sapien. Sed nunc odio, iaculis et lectus et, consequat fringilla risus. Integer aliquet adipiscing lacinia. Sed consequat mi vel tellus condimentum pulvinar. Mauris tempus, risus vitae convallis tristique, nisl enim tincidunt leo, sit amet interdum metus nulla eu orci. Ut eget consectetur elit. Suspendisse aliquet enim ut diam blandit, nec sodales nibh viverra. Sed laoreet velit interdum, vehicula nisi id, imperdiet enim. Donec semper aliquam ipsum sit amet posuere. Sed ligula neque, ornare eget rutrum quis, consequat sed lorem. Proin vitae leo felis. Etiam et orci aliquet, fermentum magna at, sollicitudin ligula.</p>
  </div>
</article>
</section>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: local('Open Sans Light'), local('OpenSans-Light'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTaRDOzjiPcYnFooOUGCOsRk.woff) format('woff');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/cJZKeOuBrn4kERxqtaUH3bO3LdcAZYWl9Si6vvxL-qU.woff) format('woff');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSqRDOzjiPcYnFooOUGCOsRk.woff) format('woff');
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strong, sub, sup, tt, var, b, u, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
}

body {
  background: #f4f4f1;
  font-family: 'Open Sans', sans-serif;
}

section {
  position: relative;
  padding: 0 30px;
}

article {
  position: relative;
  width: 80%;
  margin: 80px auto 0;
  z-index: 500;
  background: #ffffff;
  padding: 80px 80px 70px;
  border-right: 1px solid #f4f4f1;
  border-bottom: 1px solid #f4f4f1;
}

article h2 {
  color: #283f53;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

article p {
  margin-top: 18px;
  color: #404649;
  font-weight: 400;
}

/* The author card */

@-webkit-keyframes moveOut {
  0%    {
    top: 50px;
    right: 10%;
    z-index: 400;
    -webkit-transform:rotate(7deg); /* Safari and Chrome */
  }
  50%   {
    right: 2%;
    z-index: 400;
    -webkit-transform:rotate(0deg); /* Safari and Chrome */
  }
  51%   {
    z-index: 600;
  }
  100%  {
    z-index: 600;
    right: 10%;
  }
}

@-webkit-keyframes moveIn {
  100%    {
    top: 50px;
    right: 10%;
    z-index: 400;
    -webkit-transform:rotate(7deg); /* Safari and Chrome */
  }
  51%   {
    right: 2%;
    z-index: 400;
    -webkit-transform:rotate(0deg); /* Safari and Chrome */
  }
  50%   {
    z-index: 600;
  }
  0%  {
    z-index: 600;
    right: 10%;
  }
}
.author {
  -webkit-animation: moveIn 0.3s;
  
  position: absolute;
  width: 200px;
  background: #ffffff;
  text-align: center;
  padding: 15px;
  border-left: 1px solid #f4f4f1;
  border-bottom: 1px solid #f4f4f1;

    top: 50px;
    right: 10%;
    z-index: 400;
    -webkit-transform:rotate(7deg); /* Safari and Chrome */
}

.author:before {
  content: "author";
  display: block;
  text-align: right;
  margin-top: -10px;
  margin-right: -10px;
  text-transform: uppercase;
  font-size: 0.6em;
  color: #dce5ed
}

.author:hover {
    -webkit-animation: moveOut 0.3s forwards;

    right: 10%;
    z-index: 600;
    transform:rotate(0deg);
    -ms-transform:rotate(0deg); /* IE 9 */
    -webkit-transform:rotate(0deg); /* Safari and Chrome */
}

.author a.name {
  display: block;
  text-align: center;
  color: #507da5;
  text-decoration: none;  
  font-weight: 600;
}

.author img.circle {
    border-radius: 100%;
}

.author p {
    text-align: left;
    font-size: 12px;
    margin-top: 18px;
    color: #404649;
    font-weight: 400;
}


              
            
!

JS

              
                
              
            
!
999px

Console