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 id="wrapper">
 <header>
  <h1>Our Team.</h1>
 </header>
 
 <div class="wrapper__content">
  <div class="team__member" id="james">
   <figure>
    <img src="https://sagmeisterwalsh.com/_image/x600/6889055f89c174db3bbf66ac25d6d723.jpg" alt="photo of James Powell">
    <figaption class="team__caption team__blurred__img">
     <div class="team__name">James Powell</div>
     <div class="team__role">Designer</div>
    </figaption>
   </figure>
  </div>
  
  <div class="team__member" id="emily">
   <figure>
    <img src="https://sagmeisterwalsh.com/_image/x600/ffc6cad835d152df0e82eac094d8fd20.jpg" alt="photo of Emily Ewing">
    <figaption class="team__caption team__blurred__img">
     <div class="team__name">Emily Ewing</div>
     <div class="team__role">Developer</div>
    </figaption>
   </figure>
  </div>
  
  <div class="team__member" id="mathew">
   <figure>
    <img src="https://sagmeisterwalsh.com/_image/x600/e72ec52c70702c420d2b0bd71b6feeec.jpg" alt="photo of Mathew Burford">
    <figaption class="team__caption team__blurred__img">
     <div class="team__name">Mathew Burford</div>
     <div class="team__role">SVP of Management</div>
    </figaption>
   </figure>
  </div>

  <div class="team__member" id="olivia">
   <figure>
    <img src="https://sagmeisterwalsh.com/_image/x600/fe839882ae4f5824634954646825bfe2.jpg" alt="photo of Olivia Gribben">
    <figaption class="team__caption team__blurred__img">
     <div class="team__name">Olivia Gribben</div>
     <div class="team__role">CEO</div>
    </figaption>
   </figure>
  </div>
 </div>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Literata|Roboto:300,400&display=swap');

body {
  background: #f4f7f5;
  height: 100vh;
}

#wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  
  header {
    align-content: center;
    display: grid;
    grid-column: 2/12;
    justify-content: center;
    text-align: center;
    padding: 58px 0;
    
    h1 {
      color: #1c1c1c;
      font-family: 'Literata', serif;
      font-size: 48px;
      font-weight: 400;
    }
  }
  
  .wrapper__content {
    display: grid;
    grid-column: 2/12;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    
    .team__member {
      position: relative;
      
      img {
        display: block;
        width: 100%;
      }
    }
    
    .team__blurred__img {
      overflow: hidden;
      
      &::before, &::after {
        background-position: center bottom;
        background-repeat: no-repeat;
        background-size: 100% auto;
        content: '';
        filter: blur(8px);
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;
      }
      
      &::before {
        transform: scale(1);
      }
    }
    
    #james {
      .team__caption::before {
        background-image: url('https://sagmeisterwalsh.com/_image/x600/6889055f89c174db3bbf66ac25d6d723.jpg')
      }
    }
    
    #emily {
      .team__caption::before {
        background-image: url('https://sagmeisterwalsh.com/_image/x600/ffc6cad835d152df0e82eac094d8fd20.jpg')
      }
    }

    #mathew {
      .team__caption::before {
        background-image: url('https://sagmeisterwalsh.com/_image/x600/e72ec52c70702c420d2b0bd71b6feeec.jpg')
      }
    }

    #olivia {
      .team__caption::before {
        background-image: url('https://sagmeisterwalsh.com/_image/x600/fe839882ae4f5824634954646825bfe2.jpg')
      }
    }
    
    .team__caption {
      bottom: 0;
      display: grid;
      font-family: 'Roboto', sans-serif;
      height: 80px;
      left: 0;
      line-height: 1.4;
      position: absolute;
      right: 0;
      text-align: center;
      
      .team__name {
        align-content: center;
        background: rgba(#171717, 0.6);
        color: #f4f7f5;
        display: grid;
        font-size: 24px;
        font-weight: 400;
        margin: 0;
        padding: 0;
        position: relative;
        text-shadow: 0 1px 1px rgba(#1c1c1c, .35);
      }
      
      .team__role {
        align-content: flex-start;
        background: rgba(#171717, 0.8);
        color: #f4f7f5;
        display: grid;
        font-size: 16px;
        font-weight: 300;
        letter-spacing: 1px;
        opacity: 0.75;
        text-transform: uppercase;
      }
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console