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

              
                <!-- https://dribbble.com/shots/6274477-Photo-Service-Landing-Page -->

<body class="bg-gray-200 m-0">
  <div class="container m-auto my-6 px-2">
    <div class="dribbble-shot border border-gray-300 rounded shadow lg:w-1/3 w-full bg-white pt-3 pl-3 pr-3 relative cursor-pointer m-auto">
      <img src="https://cdn.dribbble.com/users/418188/screenshots/6274477/photo_service_landing_page_design_tubik_2x.png" alt="Photo Service Landing Page" class="inline text-center max-w-full w-full h-auto" />
      
      <div class="flex flex-wrap justify-end items-center pt-1 pb-2">
        <span class="text-xs dribbble-gray flex items-center mr-2">
          <img src="https://cdn.dribbble.com/assets/icon-views-sm-2x-b865539f89cd26e0bda8c7e843973f829139a277d746a13795f21a273c51fc89.png" class="w-4" alt="views" />
          <span class="ml-1">9,851</span>
        </span>
        
        <span class="text-xs dribbble-gray flex items-center mr-2">
          <span class="dribbble-comment">
            <img src="https://cdn.dribbble.com/assets/icon-comments-2x-efb230001b5f5ce4dc38f82183a3a534d34bfc0ce40c5780b14e45b31cf850e6.png" class="w-4" alt="views" />
          </span>
          <span class="ml-1">9</span>
        </span>
        
        <span class="text-xs dribbble-gray flex items-center">
          <svg class="w-3 h-3 fill-current" xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24" role="img"><path d="m18.199 2.04c-2.606-.284-4.262.961-6.199 3.008-2.045-2.047-3.593-3.292-6.199-3.008-3.544.388-6.321 4.43-5.718 7.96.966 5.659 5.944 9 11.917 12 5.973-3 10.951-6.341 11.917-12 .603-3.53-2.174-7.572-5.718-7.96z"></path></svg>
          <span class="ml-1">758</span>
        </span>
      </div>
      
      <div class="dribbble-shot-meta py-2 absolute py-2 bg-white w-full left-0 bottom-0 rounded-b px-3 flex items-center justify-between">
        <div class="flex-1">
          <h3 class="text-sm font-bold m-0 leading-none">Photo Service Landing Page</h3>
          <span class="text-xs dribbble-gray leading-none">April 02, 2019</span>
        </div>
        <div class="text-gray-700 text-sm font-bold flex">
          <a href="#" class="py-1 px-3 bg-white rounded border border-gray-300 hover:shadow hover:border-gray-400 flex items-center mr-2">Save</a>
          <a href="#" class="py-1 px-3 bg-white rounded border border-gray-300 hover:shadow hover:border-gray-400 flex items-center">
            <svg class="w-3 h-3 fill-current mr-1" xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24" role="img"><path d="m18.199 2.04c-2.606-.284-4.262.961-6.199 3.008-2.045-2.047-3.593-3.292-6.199-3.008-3.544.388-6.321 4.43-5.718 7.96.966 5.659 5.944 9 11.917 12 5.973-3 10.951-6.341 11.917-12 .603-3.53-2.174-7.572-5.718-7.96z"></path></svg> Like
          </a>
        </div>
      </div>
    </div>
  </div>
</body>
              
            
!

CSS

              
                .dribbble-gray {
  color: #aaa;
}

.dribbble-shot-meta {
  height: 38px;
  transition: opacity 0.1s ease, height 0.2s ease;
  opacity: 0;
}

.dribbble-shot:hover {
  .dribbble-shot-meta {
    height: 50px;
    will-change: transition;
    transition: opacity 0.1s ease, height 0.2s ease;
    opacity: 1;
  }
}

.dribbble-comment {
  height: 12px;
  overflow: hidden;
  
  img {
    background-size: 12px 59px;
    width: 12px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console