Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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="sitemakers">
  <div class="contain">
    <div class="avatar-contain">
      <div class="avatar">
      </div>    
    </div>
    <div class="text">
      <h1><span class="pre-load">Content Area</span></h1>
      <p><span class="pre-load">Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Maecenas faucibus mollis interdum. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</span></p>
      </div>  
  </div>
</div>
              
            
!

CSS

              
                .sitemakers {
  width: 100%;
  height: 100%;
  display: block;
  background: -webkit-radial-gradient(rgba(57,60,76,1), rgba(36,36,46,1) 80%);
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden; 

 .contain {
   position: absolute;
   background: #fff;
   width: 100%;
   height: 50%;
   bottom: 0;
   box-shadow: 0 -2px 2px rgba(36,36,46,1);
   transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
   
     &:before {
       content: '';
       display: block;
       height: 10%;
       width: 100%;
       background: white;
       border-radius: 0 0 0 0;
       transition: 600ms;
       position: absolute;
       top: -5%;
     }


   .avatar-contain {
     background: rgba(255,255,255,0);
     width: 20%;
     height: 0;
     margin: 0 auto;
     margin-top: -10%;
     overflow: hidden;
     padding-bottom: 20%;
     position: relative;
     top: -5%;
     border-radius: 5px;
     box-shadow: 0 -3px 3px rgba(0,0,0,0.2);
     transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
     
     .avatar {
       width: 100%;
       height: 0;
       padding-bottom: 100%;
       background: #fff;
            background: url('http://getparade.com/media/imagic/square3.jpg');
     background-size: 34%;
     background-position: 50% 50%;
       transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
       border-radius: 3px;
     
     }
     

   }
   
   &:hover {
     
     height: 55%;
     transition: 300ms;
     
        &:before {
          border-radius: 50% 50% 0 0;
          transition: 300ms;
           
     }
     
     .avatar-contain {
       
       overflow: hidden;
       transition: 150ms;
       border-radius: 50%;
       
       .avatar {
         background-size: 100%;
         border-radius: 50%;
         transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
       }
     }
   }
   
   
   .text {
     margin: 10px 10%;
     font-family: Tahoma, Verdana, Segoe, sans-serif;
     letter-spacing: 0pt;
     color: rgba(0,0,0,0);
     transition: 0ms;
     
     h1 {
       font-weight: 600;
       letter-spacing: -0.25pt;
       
       .pre-load {
         background: rgba(0,0,0,0.8)
       }
       
       
     }
     
     p {
       font-weight: 100;
     }
     
     .pre-load {
       background: #c7c7c7;
       line-height: 20pt;
       transition: 300ms;
      
     }
     
     
   }
   
   &:hover {
     .text {
       color: rgba(0,0,0,0.8);
       transition: 0ms;
       
       .pre-load {
         background: none;
         transition: 300ms;
       }
     }
   }
 }
}
              
            
!

JS

              
                
              
            
!
999px

Console