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 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

              
                <!-- Flyin modal bottom right corner of Screen -->
      
<div id="flyin" class="flyin">
  <span class="flyinbutton">Get All Of Our Best Freebies</span>
  <h3>Request Our "Best Of" Collection Of Web Design Freebies &amp; Resources</h3>
  <form action="" method="post" name="mc-embedded-subscribe-form" target="_blank" novalidate="">
    <input type="email" placeholder="Enter your email address..." value="" name="EMAIL" id="exit_emailinput">
    <input type="hidden" name="MERGE4" id="MERGE4" size="25" value="Blog">
    <input type="submit" value="Subscribe To Our Newsletter" name="subscribe" id="flying_subscribe">
  </form>
  <span class="flyinclose"></span>
  <span class="present_top"></span>
  <span class="present_bottom"></span>
  <span class="free"></span>
</div>
      
      
      

<!-- Exit modal center Screen -->
<div id="exitpopup">
  <div>
    <h3>Signup For Access To Free WordPress Tips &amp; Resources</h3>
    Signup for our newsletter and get access to free downloads, as well as daily WordPress tips, tricks and resources.
    <form action="" method="post" name="mc-embedded-subscribe-form" target="_blank" novalidate="">
      <input type="email" placeholder="Enter your email address..." value="" name="EMAIL" id="exit_emailinput">
      <input type="hidden" name="MERGE4" id="MERGE4" size="25" value="Blog">
      <input type="submit" value="Give Me Some Free Stuff!" name="subscribe" id="exit_subscribe">
    </form>
    <span class="close closex"></span>
  </div>
</div>
      
      
      
      
      
      
​
              
            
!

CSS

              
                /* Flyin modal bottom right corner of Screen */
​

#flyin .flyinbutton {
-webkit-transition: top .5s ease,opacity .5s ease,background-color .5s ease;
transition: top .5s ease,opacity .5s ease,background-color .5s ease;
width: 300px;
height: 20px;
top: 400px;
opacity: 0;
position: absolute;
left: 10px;
z-index: 5;
display: block;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: none;
color: #FFF;
font-size: 16px;
font-family: 'Goudy Bookletter 1911',arial,sans-serif;
background: #55A753;
padding: 11px 0 10px;
text-align: center;
cursor: pointer;
}

#flyin h3 {
-webkit-transition: opacity .5s ease;
transition: opacity .5s ease;
font-family: 'Goudy Bookletter 1911',arial,sans-serif;
font-size: 22px;
line-height: 24px;
margin-bottom: 150px;
}

#flyin #exit_emailinput {
-webkit-transition: opacity .5s;
transition: opacity .5s;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
margin: 0 0 10px;
width: 220px;
background: #F8FAFA;
padding: 11px 20px;
border: 1px solid #E4E9E9;
color: #B3B3B3;
font-size: 13px;
}

#flyin #flying_subscribe {
-webkit-transition: opacity .5s ease,background-color .5s ease;
transition: opacity .5s ease,background-color .5s ease;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: none;
width: 100%;
color: #FFF;
font-size: 16px;
font-family: 'Goudy Bookletter 1911',arial,sans-serif;
background: #55A753;
padding: 11px 0 10px;
text-align: center;
cursor: pointer;
}

#flyin #flying_subscribe:hover, #flyin .flyinbutton:hover {
background-color: #408C3F;
}

#flyin .flyinclose {
-webkit-transition: -webkit-transform .5s ease .2s,opacity .5s ease,top .5s ease .2s;
transition: transform .5s ease .2s,opacity .5s ease,top .5s ease .2s;
content: '';
display: block;
z-index: 2;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
cursor: pointer;
width: 30px;
height: 30px;
border-radius: 30px;
margin: 0;
padding: 0;
background: #FFF url(//i.imgur.com/Wawv1TE.png) no-repeat center center;
position: absolute;
top: -5px;
left: -5px;
}

#flyin .present_top {
-webkit-transition: all .5s ease .5s;
transition: all .5s ease .5s;
width: 100px;
height: 42px;
margin-left: -50px;
top: 114px;
background-image: url(//i.imgur.com/0mINhyp.png);
}

#flyin .free,
#flyin .present_bottom,
#flyin .present_top {
display: block;
position: absolute;
left: 50%;
}

#flyin .present_bottom {
width: 108px;
height: 74px;
margin-left: -54px;
top: 182px;
background-image: url(//i.imgur.com/fJf80DK.png);
}

#flyin .free {
-webkit-transition: all .5s ease 1s;
transition: all .5s ease 1s;
width: 175px;
height: 82px;
margin-left: -87px;
top: 133px;
background-image: url(//i.imgur.com/AA5yGoS.png);
}
​
#flyin,
.flyin{
z-index: 100;
border-radius: 10px 0 0;
-moz-border-radius: 10px 0 0;
-webkit-border-radius: 10px 0 0;
background: #FFF url(//i.imgur.com/xm0v1wJ.png) no-repeat;
background-position: 0 127px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
width: 260px;
padding: 30px;
position: fixed;
bottom: 0;
right: 0;
-webkit-backface-visibility: visible!important;
-ms-backface-visibility: visible!important;
backface-visibility: visible!important;
-webkit-animation: flipInY 1s cubic-bezier(0.77,0,.175,1);
-moz-animation: flipInY 1s cubic-bezier(0.77,0,.175,1);
-o-animation: flipInY 1s cubic-bezier(0.77,0,.175,1);
animation: flipInY 1s cubic-bezier(0.77,0,.175,1);
-webkit-transition: bottom .5s ease,background-position .5s ease;
transition: bottom .5s ease,background-position .5s ease;
}



#exitpopup div {
background: url(//i.imgur.com/JXC67u9.jpg) no-repeat 60px 340px;
padding: 0 60px 60px 300px;
box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
background-color: #FFF;
text-align: left;
width: 420px;
position: fixed;
z-index: 9999999;
top: 50%;
left: 50%;
margin-left: -390px;
margin-top: -203px;
-webkit-animation: swing 1s 1 cubic-bezier(0.77,0,.175,1);
-moz-animation: swing 1s 1 cubic-bezier(0.77,0,.175,1);
-o-animation: swing 1s 1 cubic-bezier(0.77,0,.175,1);
animation: swing 1s 1 cubic-bezier(0.77,0,.175,1);
-webkit-transform-origin: top center;
-ms-transform-origin: top center;
transform-origin: top center;
}

#exitpopup h3 {
line-height: 36px;
padding: 0;
margin: 60px 0 20px;
color: #454545;
font-family: 'Goudy Bookletter 1911',arial,sans-serif;
font-size: 36px;
}

#exitpopup form {
padding: 0;
margin: 0;
}

#exit_emailinput {
margin: 40px 0 20px;
width: 380px;
background: #F8FAFA;
padding: 20px;
border: 1px solid #E4E9E9;
color: #B3B3B3;
font-size: 16px;
}

#exit_subscribe {
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border: none;
width: 420px;
color: #FFF;
font-size: 28px;
font-family: 'Goudy Bookletter 1911',arial,sans-serif;
background: #55A753;
padding: 10px 0;
text-align: center;
cursor: pointer;
}

#exitpopup div:after {
background-image: url(//i.imgur.com/tHI1nzD.png);
}

#exitpopup div:after {
display: block;
content: "";
background-image: url(//i.imgur.com/58baWk3.png);
width: 318px;
height: 318px;
position: absolute;
left: -50px;
top: -50px;
}

​


#exitpopup .closex {
display: block;
cursor: pointer;
width: 19px;
height: 19px;
margin: 0;
padding: 0;
background-repeat: no-repeat;
background-image: url(//i.imgur.com/Wawv1TE.png);
position: absolute;
top: 20px;
right: 20px;
}


#exitpopup:after {
content: "";
background-color: rgba(0, 0, 0, 0.2);
top: 0;
left: 0;
width: 100%;
height: 100%;
position: fixed;
z-index: 999999;
}
​

​

              
            
!

JS

              
                /*
// TODO

- Make it Responsive somehow
- Trigger the Modal popup when the mouse cursor passes over the top browser chrome threshold
- If the 'Optin_DisplayedPopup' Cookie = true then Do NOT trigger the Modal popup
- If they Subscribe to the email then set the Cookie 'Optin_Subscribed' to true, by default it is set to false
- If 'Optin_MinimizeFlyin' Cookie is 'open' then show flyin bottom right modal
- 


Cookies used with Modals :

Optin_DisplayedPopup true
Optin_MinimizeFlyin open
Optin_PageviewCounter 5
Optin_Subscribed false

*/ 
              
            
!
999px

Console