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

Auto Save

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="wrapper">
  
  <div class="upper-pic">
    <div class="details">
      <div class="name">Rebecca Sloane</div>
      <div class="username">@rebec011</div>
    </div>
    <div class="more-details">
      <div class="bio">I am front-end designer, developer,i loves to solve problems in front-design and optimization. By Day, I am designer/developer and by night author, hacker</div>
    </div>
  </div>
  
  <div class="plus-button">
    <div class="btn">+</div>
  </div>
  <div class="stats">
    <div class="block">
      <div class="text">Projects</div>
      <div class="count">340</div>
    </div>
    <div class="block">
      <div class="text">Followers</div>
      <div class="count">530</div>
    </div>
    <div class="block">
      <div class="text">Following</div>
      <div class="count">140</div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=PT+Sans+Narrow:700,400|Titillium+Web:400,600,700,300);

$body-bg: #e5e5e5;

@mixin trans($prop:all, $time:0.4s, $time_function:ease-in-out) {
  transition: $prop $time $time_function;
}

* {
  box-sizing: border-box;  
}
::-webkit-input-placeholder {
   color: #e4e4e4;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: $body-bg;
  font-family: 'PT Sans Narrow', sans-serif;
}

.wrapper {
  width: 380px;
  margin: 40px auto;
  text-align: center;
  background: #fff;
  transform: translateY(-10px);
  box-shadow: 0 10px 10px rgba(0,0,0,.3);

  @include trans();
  &.selected {
    .upper-pic {
      .details {
        transform: translateY(0);
      }
      .more-details {
        visibility: visible;
        opacity: 1;
        transform: translateY(-20px);
        transition-delay: 400ms;
      }
    }
  }
}


.upper-pic {
  width: 100%;
  height: 300px;
  margin: 0 auto;
  background: linear-gradient(to top, #333, transparent), url('https://static.pexels.com/photos/6403/people-woman-girl-technology-large.jpg'); 
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  color: #fff;    
  letter-spacing: 1px;
  @include trans($time: .3s);
  .details{
    font-size: 25px;
    margin: 0 auto;
    transform: translateY(120px);
    @include trans();
    .username {
      font-size: 16px;
    }    
  }  

  .more-details {
    visibility: hidden;
    margin: 0 auto;
    padding: 20px;
    width: 80%;
    opacity: 0;
    transform: translateY(-10px);
    @include trans($time_function: cubic-bezier(0.42, 0, 0, 1.79));
    transition-delay: 0ms;
    .bio {
      font-size: 16px;
      padding: 10px;
    }
  }
}

.plus-button {
  .btn {
    margin: -20px auto 15px;
    width: 50px;
    height: 50px;
    display: flex;
    font-size: 35px;
    transform: scale(1.5);
    align-items: center;
    justify-content: center;
    color: #eee;
    background: linear-gradient(to top, #ff423a, #ff8337);
    border-radius: 50%;
    box-shadow: 0 0 5px #444;
    @include trans();
    &:hover {
      cursor: pointer;
      transform: scale(1.4);
    }
  }
}


.stats {
  display: flex;
  justify-content: space-around;
  color: #777;
  padding: 10px 20px 20px;
  .text  {
    color: #aaa;
  }
  .count {
    font-size: 25px;
    font-weight: 700;
  }
}



              
            
!

JS

              
                $(document).ready(()->
    $('.btn').click((e)->
      $('.wrapper').toggleClass('selected')

    )
)
              
            
!
999px

Console