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

              
                .container.full-screen
  section.row
    h1.title Info Cards
    hr
    .col-xs-8.col-xs-offset-2
      p.lead.text-center A set of cards made to display an extract of information. When you hover, it displays a title, paragraph and button with transition effects.
      hr
  .row
    article.col-xs-4
      .cards
        span.glyphicon.glyphicon-flash.icon
        hr.divider
        h2.title First
        div.info
          hr.divider
          p.lead Are you ready see the next page and be amazed of what you can find?
          a.btn.btn-lg.center-block Go get it!
    
    article.col-xs-4
      .cards
        span.glyphicon.glyphicon-bookmark.icon
        hr.divider
        h2.title Second
        div.info
          hr.divider
          p.lead Are you ready to see the next page and be amazed of what you can find?
          a.btn.btn-lg.center-block Go get it!

    article.col-xs-4
      .cards
        span.glyphicon.glyphicon-ice-lolly-tasted.icon
        hr.divider
        h2.title Last
        div.info
          hr.divider
          p.lead Are you ready to go to the next page and be amazed of what you can find?
          a.btn.btn-lg.center-block Go get it!
              
            
!

CSS

              
                // Variables
$light:  #febbbb;
$medium: #fe9090;
$dark:   #ff5c5c;
$dark-v1: #c84848;
$text-color: #999;
$cta: #00c5a7;
// Styles
body {
  background: $light;
  background: linear-gradient(135deg, $light 0%,$medium 45%,$dark 100%);
  font-size: 10px;
  padding: 2em;
}
.full-screen {
  height: 100vw;
  position: relative;
}

// General content
.title {
  text-align: center;
  font-weight: 100;
}
.divider {
  border-bottom: 1px solid $light;
}
// Cards
.cards {
  background: #f2f2f2;
  border-radius: 3px;
  cursor: pointer;
  height: 17em;
  padding: 1.5em;
  position: relative;
  transition: height 0.4s, box-shadow 0.5s;
  
  &:hover {
    box-shadow: 0 0 2em #999;
    height: 38em;
    transition: height 0.3s ease, box-shadow 0.5s ease;
    
    .divider {
      opacity: 0.5;
    }
    
    .info {
      transition: top 0.5s ease, opacity 1s ease;
      visibility: visible;
      top: 1%;
      opacity: 1;
      .divider {
        //opacity: 1;
      }
    }
    .icon {
      font-size: 2em;
      left: 45%;
      transition: font-size .3s, left .3s;
    }
  }

  .info {
    position: relative;
    visibility: hidden;
    top: -50%;
    opacity: 0;
  }
  
  .icon {
    color: $light;
    font-size: 4em;
    text-align: center;
    //text-shadow: 0 -1px 0 $dark-v1;
    padding: 0em;
    position: relative;
    left: 43%;
    top: 0em;
    transition: font-size .3s ease, left .3s ease;
  }
  
  .title {
    color: $text-color;
    text-align: center;
    font-weight: 300;
  }
  .lead {
    color: $text-color;
    font-weight: 100;
    font-size: 2em;
    text-align: center;
    hyphens: auto;
  }
  .btn {
    color: $cta;
    border: 1px solid $cta;
    border-radius: 3px;
    transition: color 0.3s, background 0.3s;
    &:hover {
      background: $cta;
      color: #fff;
      transition: background 0.5s ease;
    }
  }
}
              
            
!

JS

              
                // Sorry, No JS!
              
            
!
999px

Console