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

              
                .cards.style-1
  .col
    .card
      img.card-image(src="https://images.unsplash.com/photo-1503764654157-72d979d9af2f?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=71cdddf5cc615224cf2c26614d20154d&auto=format&fit=crop&w=1353&q=80")
      .card-title Soaps
      .card-description Hot lunch
  .col
    .card
      img.card-image(src="https://images.unsplash.com/photo-1482049016688-2d3e1b311543?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=c75e0437e819afdceeb3050a6bcdd71b&auto=format&fit=crop&w=353&q=80")
      .card-title Salads
      .card-description Very tasty and healthy
  .col
    .card
      img.card-image(src="https://images.unsplash.com/photo-1422255198496-21531f12a6e8?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=25f55fdabb6531a58775e4b9bba51aa9&auto=format&fit=crop&w=753&q=80")
      .card-title Sweet macarons
      .card-description Colorful deserts
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Raleway:300,400,500')
$bg-color: #00B7C2
*
  box-sizing: border-box
body
  font-family: 'Raleway', sans-serif
.cards
  position: relative
  padding: 80px 60px
  display: -webkit-box
  display: -webkit-flex
  display: -ms-flexbox
  display: flex
  -webkit-flex-wrap: wrap
  -ms-flex-wrap: wrap
  flex-wrap: wrap
  &.style-1
    background: #83a4d4
    background: -webkit-linear-gradient(to right, #b6fbff, #83a4d4)
    background: linear-gradient(to right, #b6fbff, #83a4d4)
  .col
    -webkit-flex-basis: 0
    -ms-flex-preferred-size: 0
    flex-basis: 0
    -webkit-box-flex: 1
    -webkit-flex-grow: 1
    -ms-flex-positive: 1
    flex-grow: 1
    -webkit-flex: 0 0 33.333%
    -ms-flex: 0 0 33.333%
    flex: 0 0 33.333%
    max-width: 33.333%
    padding: 0 30px
.card
  position: relative
  color: #fff
  background-color: $bg-color
  border-radius: 8px
  overflow: hidden
  &-image
    width: 100%
    height: 200px
    object-fit: cover
    object-position: center
  &-title
    position: relative
    padding: 20px 25px 5px
    font-size: 2em
    font-weight: 500
    &:before
      content: ''
      position: absolute
      left: 25px
      top: 0
      width: 50px
      height: 50px
      margin-top: -25px
      background-color: $bg-color
      border-radius: 50%
      -webkit-transition: transform 600ms cubic-bezier(0.86, 0, 0.07, 1), opacity 400ms cubic-bezier(0.075, 0.82, 0.165, 1)
      transition: transform 600ms cubic-bezier(0.86, 0, 0.07, 1), opacity 400ms cubic-bezier(0.075, 0.82, 0.165, 1)
  &:hover &-title:before
    opacity: 0.8
    transform: scale(0.6)
  &-description
    padding: 5px 25px 20px
              
            
!

JS

              
                
              
            
!
999px

Console