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 class="container">
  
  <div class="card">
    <div class="imgBx">
      <i class="fab fa-html5"></i>
      <h3>HTML5</h3>
    </div>
    <div class="content">
      <p>Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.</p>
    </div>
  </div>
  
  <div class="card">
    <div class="imgBx">
      <i class="fab fa-css3-alt"></i>
      <h3>CSS3</h3>
    </div>
    <div class="content">
      <p>Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML. CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript.</p>
    </div>
  </div>
  
  <div class="card">
    <div class="imgBx">
      <i class="fab fa-js-square"></i>
      <h3>JavaScript</h3>
    </div>
    <div class="content">
      <p>JavaScript is a programming language that conforms to the ECMAScript specification. JavaScript is high-level, often just-in-time compiled, and multi-paradigm.</p>
    </div>
  </div>
  
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Righteous', cursive;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #D9AFD9;
  background-image: linear-gradient(0deg, #D9AFD9 0%, #97D9E1 100%);

  
  .container {
  position: relative;
  width: 800px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  transition: .5s;
  transform: skewY(-10deg);
    
    .card {
      position: relative;
      width: 200px;
      height: 300px;
      transition: .5s;
      
      &:before {
        content: '';
        position: absolute;
        top: -15px;
        left: 0;
        width: 100%;
        height: 15px;
        background: #B5FFFC;
        transform-origin: bottom;
        transform: skewX(45deg);
        transition: .5s;
      }
      
      &:after {
        content: '';
        position: absolute;
        top: -15px;
        left: -15px;
        width: 15px;
        height: 50%;
        background: #B5FFFC;
        transform-origin: left;
        transform: skewY(45deg);
        transition: .5s;
        border-bottom: 200px solid #B5FFFC;
      }
      
      &:hover {
        transform: translateY(-40px);
      }
      
      .imgBx {
        position: relative;
        width: 200px;
        height: 100px;
        background-color: #FFDEE9;
        background-image: linear-gradient(0deg, #FFDEE9 0%, #B5FFFC 100%);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        
        .fab {
          font-size: 3em;
        }
        
        .fa-html5 {
          background-color: #FBDA61;
          background-image: linear-gradient(45deg, #FBDA61 0%, #FF5ACD 100%);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
        }
        
        .fa-css3-alt {
          background-color: #409eff;
          background-image: linear-gradient(45deg, #4F29CD 0%, #409eff 100%);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
        }
        
        .fa-js-square {
          background-color: #f7ff00;
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
        }
        
        h3 {
          position: relative;
          margin-top: 10px;
        }
      }
      
      .content {
        position: relative;
        background: #FFDEE9;
        width: 100%;
        height: 250px;
        padding: 20px;
        text-align: center;
        
        &:before {
          content: '';
          position: absolute;
          left: 0;
          bottom: 0;
          width: 100%;
          height: 30px;
          background: linear-gradient(transparent, transparent, rgba(0, 0, 0, .2));
          transform-origin: bottom;
          transform: skewX(45deg);
          transition: .5s;
          z-index: -1;
        }
        
        p {
          font-size: 13px;
        }
      }
    }
    
    .card:hover .content:before {
      transform: translateY(40px) skewX(45deg) ;
      filter: blur(5px);
      opacity: 0.5;
    }
    
    .card:nth-child(1) {
      z-index: 3;
    }
    
    .card:nth-child(2) {
      z-index: 2;
    }
    
    .card:nth-child(3) {
      z-index: 1;
    }
  }
}

@media (max-width: 400px) {
  
    body  {
      overflow: auto;
  }
  
    .card {       
        width: 80%;
        margin-bottom: 100px;             
  }
  
    .container {
        padding-top: 200px;
        position: relative;
        left: 25%;   
        top: 80%;
  }  
  
    .container .card {
      padding-bottom: 40px
  }

    .container .card:hover {
        transform: translateY(-25px);
  }
  
}

              
            
!

JS

              
                
              
            
!
999px

Console