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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

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>[Typeform] Popup embed API example using auto-open</title>
</head>

<body>
  <div class="container">
    <h1>Cupcake ipsum</h1>
    <h2>Upon loading, this page opens a left-drawer embedded typeform</h2>

    <p>Tiramisu danish powder gingerbread sugar plum wafer biscuit marzipan. Danish soufflé oat cake pie liquorice dessert candy croissant. Biscuit candy gummi bears cookie sweet. Marshmallow jujubes wafer tart lollipop liquorice. Toffee candy liquorice macaroon.</p>
    
    <p>Tiramisu danish powder gingerbread sugar plum wafer biscuit marzipan. Danish soufflé oat cake pie liquorice dessert candy croissant. Biscuit candy gummi bears cookie sweet. Marshmallow jujubes wafer tart lollipop liquorice. Toffee candy liquorice macaroon.</p>
  </div>
  <script src="https://embed.typeform.com/embed.js" type="text/javascript"></script>
  <script type="text/javascript">
    window.addEventListener('DOMContentLoaded', function () {
        // When instantiating a popup embed, you must provide the URL
        // of your typeform and your desired embed settings. If you don't
        // provide any settings, a default 'popup' embed is instantiated.
        // If you use 'autoOpen', your embedded typeform will open right
        // away when the page loads.
        window.typeformEmbed.makePopup('https://admin.typeform.com/to/cVa5IG', {
          mode: 'drawer_left',
          autoOpen: true
        });
      });
  </script>
</body>

</html>
            
          
!

CSS

            
              body {
  background: url('https://www.toptal.com/designers/subtlepatterns/patterns/restaurant_icons.png');
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;  
}

h1 {
  font-size: 50px;
  text-align: center;
}

.container {
  margin: 0 auto;
  width: 600px;
}

.container p, .container h2 {
  text-align: center;
}
            
          
!

JS

            
              
            
          
!
999px

Console