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.

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 style="margin:auto;padding:20px;max-width:500px;">
    <h1>Article Headline</h1>
    <p>Lorem ipsum dolor sit amet, ut consul scripta pri, sed rebum iriure audire an. Eruditi omnesque evertitur sit ad, eu per habemus officiis dissentias. Alii aliquam efficiantur ut mea, et eum sint zril veritus. Ne mei ignota argumentum, impetus tritani
        cu vim, vix error solet id.</p>

    <p>Pro essent referrentur ex, atqui labore fuisset ea pro, commodo corpora singulis nam ut. Eros semper cu per, eu per unum vocibus theophrastus. Option feugait pericula ius no, adhuc legendos antiopam pri id. In his inimicus praesent prodesset, an electram
        consetetur voluptatum vix. Eos ex accusam voluptua reformidans, integre epicuri rationibus sea in, cu has verterem prodesset efficiantur.</p>

    <p>Mel nisl ullum id, nisl dicat eu eum. Duo eu graeci adversarium, an probo vivendo percipitur eos. Reque possit numquam vix cu, odio quot liber nec ex. Ei elit nominavi copiosae duo, vocent oporteat electram mei cu, quando tractatos nec ne. Te duo
        aliquip assentior, ei decore moderatius ius. Sea in nominavi sensibus, mei an augue offendit.</p>

    <p>Eu his possim qualisque, audire legendos sed ex. Duo ei oportere splendide. Saperet tractatos vix in, sed tation graeco feugait an, et sea ullum antiopam reprehendunt. Ius ne sint noster minimum, usu ne omnes graeco detracto. Iisque persecuti cotidieque
        eos ad.</p>

    <p>Tamquam phaedrum vim cu, tamquam accumsan recteque ei est, at quo decore graecis luptatum. Sumo ceteros in eum. Tota doming fabellas cu has, cu choro cetero scribentur eos. Duo choro animal aliquam cu, vel augue minimum maiestatis ex. At vel probo
        impedit elaboraret, ea vis dolor affert mucius. His ea lobortis consulatu, an sed malis senserit.</p>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.css" />

<!--Delayed Popup-->
<div id="bento-exit-intent" class="bento-popup mfp-hide">
    <img src="https://avatars.io/twitter/jessethanley" class="bento-exit-logo">
    <h2>Free Conversion Guide</h2>
    <p>That Help You Get More Sales.</p>
    <!-- Choices / Options Go Here -->
    <div class="bento-exit-options">
        <div class="bento-exit-negative-button" onClick="$.magnificPopup.close();localStorage.setItem('bento_exitintent_show', 'true');">
            No thanks, I'm not interested
        </div>
        <div class="bento-exit-positive-button" onClick="$('.bento-exit-options').hide();$('.bento-exit-answer').show();">
            Unlock the list
        </div>
    </div>
    <div class="bento-exit-answer" style="display:none;">
        { Put your opt-in here }
    </div>

</div>
<!--End Delayed Popup-->
<script>
    // Exit intent
    function addEvent(obj, evt, fn) {
      if (obj.addEventListener) {
        obj.addEventListener(evt, fn, false);
      } else if (obj.attachEvent) {
        obj.attachEvent("on" + evt, fn);
      }
    }
    // Exit intent trigger
    addEvent(document, 'mouseout', function(evt) {
      if (evt.toElement === null && evt.relatedTarget === null && !localStorage.getItem('bento_exitintent_show')) {
        $.magnificPopup.open({
          items: {
            src: '#bento-exit-intent' //ID of inline element
          },
          type: 'inline',
          removalDelay: 0, //Delaying the removal in order to fit in the animation of the popup
          mainClass: 'mfp-fade mfp-fade-side', //The actual animation
        });
        //localStorage.setItem('bento_exitintent_show', 'true'); // Set the flag in localStorage
      }
    });
</script>
<style>
    .mfp-container {
      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
      opacity: 1;
      background-color: black;
      background-image: url(https://images.unsplash.com/photo-1505664063603-28e48ca204eb?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=9e4a2667054af80d03d376a9f28640ea&auto=format&fit=crop&w=1350&q=80);
      background-repeat: no-repeat;
      background-position: 50% 50%;
      background-size: cover;
    }
    .bento-popup {
      font-family: "Open Sans",Helvetica,Arial,sans-serif;
      position: relative;
      background: transparent;
      padding: 20px;
      width: auto;
      max-width: 700px;
      margin: 20px auto;
      text-align:center;
      > * {
        margin-top: 0;
      }
    }
    .bento-exit-logo {
      height: 50px;
      border-radius: 100%;
    }
    .bento-popup h2 {
      color: white;
      font-weight: 700;
      font-size: 50px;
      color: white;
      margin-bottom: 5px;
    }
    .bento-popup p {
      font-weight: 700;
      font-size: 25px;
      color: #e31f2d;
      text-transform: uppercase;
    }
    .bento-exit-options {
      cursor: pointer;
      font-size:19px;
    }
    .bento-exit-positive-button {
      padding: 30px;
      font-weight: 700;
      border-radius: 10px;
      background-color: #e31f2d;
      box-shadow: none;
      color: white;
      border-style: solid;
      border-color: #e31f2d;
      border-width: 2px;
      margin: 10px;
    }
    .bento-exit-negative-button {
      padding: 30px 10px;
      font-weight: 400;
      border-radius: 10px;
      background-color: rgb(125, 125, 125);
      background-color: rgba(125, 125, 125, 0);
      box-shadow: none;
      color: white;
      border-style: solid;
      border-color: white;
      border-width: 2px;
      margin: 10px;
    }
</style>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console