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

              
                <!-- 
Smart PopUp v1.1 Grow style
Pop up that show when pointer want to close the page
JS base from Exit Intent PopUp @beeker1121
Designed by me
-->
<!-- description -->
<div align="center">
  <h2>Wait 5 seconds, and close the page preview</h2>
  <img width="450px" height="auto" src="https://2.bp.blogspot.com/-4M9RGRCyCYs/XAypTR7eCxI/AAAAAAAAC-A/GANggb5HIaQNuAnbaTUoEnyIQkPyE-47wCLcBGAs/s1600/ss-grow.JPG">
</div>

<!-- Go -->
<div id="bio_ep">
  <div id="bio_ep_content">
	  <!-- your image here -->
	  <img src="https://1.bp.blogspot.com/-J0swEdppgBs/W_QwM-mdQWI/AAAAAAAAC9U/DO1bOFjq5x4VIFw9Gu_HolG3QbJ9GT2_gCLcBGAs/s1600/grow-new.png" width="100%" alt="Grow" />
	  <!-- title and text -->
	  <span class="title-popup">HELP US GROW!</span>
	  <span class="des-popup">Terima kasih gaes telah mampir<br> Bantu kami tumbuh dengan like dan subscribe berikut</span><br />
	  <!-- form subscribe here -->
	  <form action="#" method="POST">
		  <input type="email" autocapitalize="off" autocorrect="off" size="25" value="" placeholder="Email Anda" />
		  <div><input type="submit" class="formEmailButton bio_btn" name="submit" value="SUBSCRIBE" /></div>
	  </form>
	  <!-- social media button -->
	  <div id="social-popup">
		  <a href="#"><span class="sp-btn" id="fb-popup"><span class="fa fa-facebook"></span> Facebook</span></a>
		  <a href="#"><span class="sp-btn" id="gp-popup"><span class="fa fa-google-plus"></span> Google+</span></a>
      <a href="#"><span class="sp-btn" id="ig-popup"><span class="fa fa-instagram"></span> Instagram</span></a>
	  </div>
  </div>
</div>
<!-- Add the JS -->
<script type="text/javascript" src="https://rawgit.com/beeker1121/exit-intent-popup/master/js/bioep.js"></script>
              
            
!

CSS

              
                #bio_ep {
	width: 550px;
	height: auto; 
	color: #333; 
	background-color: #fff; 
	text-align: center; 
	border-radius: 15px;
	overflow:hidden; 
	box-shadow: 0px 0px 20px #0000006b;
}
#bio_ep_content {
	padding-bottom: 23px;
}
#bio_ep_content img{
	padding-top: 0px;
	box-shadow: 0px 0px 10px #0000006b;
}
.title-popup {
    font-family: Carter One;
	font-size: 30px;
	font-weight: 600; 
	display:block; 
	padding: 15px 0;
}
.des-popup {
	display: inline-block;
	width: 70%;
	font-size: 14px;
	color: #676767;
	line-height: 21px;
}
#bio_ep_content form {
	padding-top: 25px;
}
#bio_ep_content form input{
	font-size: 16px;
	padding: 7px 17px; 
	border: 1px solid #a4a4a4; 
	border-radius: 30px !important;
}
#bio_ep_content form input:active {
	border: 1px solid #80C56E !important; 
}
#bio_ep_content form input:focus {
	outline: none; 
}
#bio_ep_close {
	margin: 5px 0 0 -46px;
    width: 41px;
    height: 28px;
    padding: 7px 0;
    background-color: #fff;
    color: #5c5c5c;
    border-radius: 100%;
    font-size: 22px;
    font-family: calibri;
}
#bio_ep_close:hover {
	background-color: #ececec;
}
.bio_btn {
	display: inline-block; 
	font-size: 14px !important; 
	margin: 18px 0; 
	padding: 7px; 
	color: #fff; 
	font-size: 14px; 
	font-weight: 600; 
	background-color: #80C56E; 
	border: 1px solid #80C56E !important;
	cursor: pointer; 
	-webkit-appearance: none; 
	-moz-appearance: none; 
	border-radius: 30px; 
	text-decoration: none; 
	box-shadow: 1px 1px 4px #0000006b;
}
#social-popup {
	padding-bottom: 14px;
	font-size: 12px;
}
#social-popup a {
	text-decoration: none; 
	color: white; 
	margin: 0 5px;
}
.sp-btn{
  padding: 5px 10px; 
	border-radius: 4px;
}
#fb-popup{
	background: #39569B; 
}
#gp-popup{
	background: #DA4835; 
}
#ig-popup{
  background: #251F21;
}
              
            
!

JS

              
                //Options, please see here https://github.com/beeker1121/exit-intent-popup
bioEp.init({
  cookieExp: 0,
  delay: 5
});
              
            
!
999px

Console