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>
  <copy>
  <h2>Over 1 trillion pixels shared. What are you working on?</h2>
  
  <p>Tens of millions of people look for design inspiration and feedback on Dribbble. We help players like you share small screenshots (shots) to show off your current projects, boost your portfolio, and love what you do—no matter what kind of creative professional you are.</p>
  
  <p>Founded in 2009, we are a bootstrapped and profitable company helping design talent share, grow, and get hired by over 40,000 of today’s most innovative brands around the world.</p>
  </copy>
  <images>
    <img class="tropical" src="https://cdn.dribbble.com/assets/company/about/waywo-5b96e1eddb96f389733fe7d774149ee996e163ff3a24650ec935b1dcd5f3903e.png" alt="">
    
     <img class="dropbox" src="https://cdn.dribbble.com/assets/company/about/db_intro-e603c3249bcaadb2eb87b1b9ce248f0dccc656a4db0c735ebd986699bd63ad20.gif" alt="">
     
    <img class="flowers" src="https://cdn.dribbble.com/assets/company/about/drib_tropical-bf2d7b832498a59a75dd4d62b90bfe14e213f0bdfec01c2255ac2a5ac77b976b.jpg" alt="">
     
    <img class="space" src="https://cdn.dribbble.com/assets/company/about/drib_planet-bcc9e4501752e37cbf0ba1c050fd5c3617273be8680489f3d7394118fcd62746.jpg" alt="">
    
    
    <img class="google" src="https://cdn.dribbble.com/assets/company/about/gsa_intro-559b765ac887c8574ddb2ea3d510b3684d3dbc973f4db7dd7749c7cc5e8a5fbe.gif" alt="">
  </images>
</section>

<a class="link_to_original" href="https://dribbble.com/about">Link to Original</a>



<img src="https://i.gyazo.com/f6371f5e62351873710fe4e2b32771d6.gif" alt="gif of hover states" class="ss_yeoh original">

              
            
!

CSS

              
                :root
{
  font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: rgb(119, 119, 119);
  font-size: 20px;
}

body
{
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
}

h2
{
  color: rgb(51, 51, 51);
}

section
{
  display: flex;
  flex-basis: 50%;
  max-width: 1200px;
  margin: 0 auto;


  @media screen and (max-width: 600px) {
    flex-direction: column;
  }
}




section > copy,
section > images
{
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 50%;
  align-self: center;
}

section > copy
{
  padding: 0 2rem 0 0;
}


images
{


  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 3fr 1fr;

  grid-template-rows: 1fr 1fr 3fr 1.5fr 5fr 2fr;
  height: 600px;
  padding: 1rem;



  img
  { 
    // max-width:200px;
    width: 100%;
    height: auto;

    border-radius: .5rem;

    margin: 0;
    padding: 0;


    -webkit-box-shadow: 0px 0px 33px -6px rgba(0,0,0,0.52);
    -moz-box-shadow: 0px 0px 33px -6px rgba(0,0,0,0.52);
    box-shadow: 0px 0px 33px -6px rgba(0,0,0,0.52);

    transition: box-shadow .5s, transform .3s;


  }



  img:hover
  {
    transform: translateY(-10px);

    -webkit-box-shadow: 0px 18px 33px 10px rgba(0,0,0,0.31);
    -moz-box-shadow: 0px 18px 33px 10px rgba(0,0,0,0.31);
    box-shadow: 0px 18px 33px 10px rgba(0,0,0,0.31);

    z-index: 100 !important;
  }




  .dropbox
  {
    grid-column: 7 / -1;
    grid-row: 2 / span 4;
    z-index: 5;
  }

  .space
  {
    grid-column: 1 / span 4;
    grid-row: 5 / span 1;
    z-index: 2;
  }

  .tropical
  {
    grid-column: 3 / span 5;
    grid-row: 3 / span 5;
    z-index: 4;
  }

  .flowers
  {
    grid-column: 2 / span 4;
    grid-row: 1 / span 3;
    z-index: 3;
  }

  .google
  {
    grid-column: 4 / span 6;
    grid-row: 4 / -1;
    z-index: 3;
  }
}






.original
{
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  display: block;
}

.link_to_original
{
  background: bisque;
  padding: 1rem;
  color: unset;
  text-decoration: none;
  margin: 2rem auto;
  display: inline-block;
  text-align: center;
}
              
            
!

JS

              
                
              
            
!
999px

Console