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

              
                <html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400" rel="stylesheet">
  <style>
    
  </style>
</head>
<body>
  <div class="hero">
    <header>
      <h1>DESIGN BETTER. FASTER. TOGETHER.</h1>
      <h2>The Digital Product Design platform powering the world’s best user experiences</h2>
      <a  href="/hola" class="hero__btn_play">
        <img src="http://riverfrontfw.org/wp-content/themes/rfw/assets/img/play-btn.png">
      </a>
      <div class="hero__btn">
        GET STARTED - FREE FOREVER!
      </div>
    </header>
    <video autoplay 
      src="https://s3.amazonaws.com/www-assets.invisionapp.com/Homepage/enterprise-loop.mp4"></video>
  </div>
</body>
</html>
              
            
!

CSS

              
                *{
      padding: 0px;
      margin: 0px;
      font-family: 'Open Sans';
    }

    .hero{
      width: 100%;
      height: 100vh;
      overflow: hidden;
    }
    video{
      width: 100%;
      min-width: 1280px;
      height: auto;
      min-height: 100vh;
    }
    header{
      position: absolute;
      top: 0px;
      width: 100%;
      height: 100vh;
      background-color: rgba(0, 0, 0, .5);
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      z-index: 2;
    }
    header h1 {
      font-size: 3.3em;
      font-weight: 400;
      margin-bottom: 15px;
      text-align: center;
    }
    header h2{
      font-size: 1.5em;
      font-weight: 300;
      text-align: center;
    }

    header .hero__btn_play{
      margin-top: 30px;
    }
    header .hero__btn_play img{
      width: 45px;
      height: 45px;
      border-radius: 50%;
    }

    header .hero__btn{
      background-color: #f36;
      color: white;
      padding: 13px 50px;
      border-radius: 6em;
      cursor: pointer;
      margin-top: 50px;
      font-size: .9em;
    }
              
            
!

JS

              
                
              
            
!
999px

Console