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

              
                <button id="open-popup-modal" class="btn">Open Model</button>
<div id="popup-modal" class="modal">
<div class="modal-content animated bounce">
<a class="modal-close">×</a>
<div class="modal-img">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkQAAACjCAYAAABrPgFJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAALLBJREFUeNrsnXtsHdd95+fyvnhffIgWbcmRfel4RaSWYBladCOj2ShWYSwQK5EXRbCL/SPybtr9o4vYgZMATp0qLrIOFgvDaRHsAtsGkoFtAhgtKlfuP8XKdlrDdNLK1lbOoiJikQqtt0le8vK++djfdzhDDy/vY+7cmbkzc78fYzwkRd7HuXPOfM7v/M45IYUQssXi4mJWTqfkOCHHCEuE9Dk5Oc7K8cLo6Ogsi4MEmRCLgJAtGTopp9MsCUIa8pRI0RkWA6EQEUIZIoRSRCkiFCJCAitDWTnNsCQIMcUEh89IEBlgERCi5gwRQlhfCIWIkL7mBIuAENYXQiEipN/hbDJCWF8IhYgQQgghhEJECCGEEEIhIoQQQgjpZyIsAkIIIcQdNsq5CTkdkyMlx5+FBk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EGIb9xu/GRgYUHRBGhkdVYVIFyScvSBIGxsb9/NjI4RQiAghdnKoZQMTiciRVlKptPq9LkilYkk9I6LUAyE6xI+NEEIhIoS4JkTtBAk5R2VDBMkNQZLnoBARQnbApGpCiCXefud9iMX7dj6mPry2KUllx157Mpl85MtfevwiP0VCyFaHjUVACLFI1u4HjMcH1WNIGd4mSMVS0dYZbMViEa+dQkQIoRARQrrG8aGnLUEaHt42g82GKf547dyTixBCISKEdM3n3Xwy4ww2AEHC1H4rM9gGwuHP8+MjhFCICCF2kO3lk0OQkJxdP4PNjCCtr61l+fERQihEhBDfC9GOxqyzGWwUIkLINjjLjBDSMdiyQ05v+uk164JUKpX0GWzcwoMQ8kmnikVACLGA79byicZi6pHJDBnfA4WIEKLC3e4JIVa4n++BEEIhIoT0O4f4HgghFCJCCIWI74EQQiEihPQrb7/zflZOIwF4KyPaeyGEEAoRIaRjsnwvhBAKESGk3znK90IICRpch4gQomxsbGAI7KQcX1WYW1MPNoF9RY4zoVAox+IghEJECAmmDJ2Q02klGHlBTgIZekqkiJvCEkIhIoQETIZOajJEzAMpOsNiIIRCRAgJhgwhMvRXLAlLPMlIESEUIkKI/2UIw2MzCofJrILhswnmFBESHDjLjJD+5CRlqCv0JHRCCIWIEOJjvsoiYBkSQj6BQ2aE9CEbAkvBhgZUYCkQEgwYISKEEEJI3/P/BRgAR12Li/I15O4AAAAASUVORK5CYII=" alt=""/>
</div>
<div class="modal-text">
<h2>Subscribe Now</h2>
<p>Subscribe to our newsletters and stay updated of our new arrivals. You just have to enter your email id below and click submit.</p>
</div>
<div class="modal-footer">
<form action="https://feedburner.google.com/fb/a/mailverify" method="post"
onsubmit='window.open("https://feedburner.google.com/fb/a/mailverify?uri=softwebtuts/NiEc",
"popupwindow", "scrollbars=yes,width=550,height=520"); return true' target="popupwindow">
<input type="text" class="modal-input" placeholder="Enter Your Email Id Here"/>
<input type="submit" class="modal-submit-btn" value="Submit"/>
</form>
</div>
</div>

              
            
!

CSS

              
                .modal{
display: none;
position: fixed;
z-index: 9999;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0,0,0);
background-color: rgba(0,0,0,0.4);
font-family: sans-serif;
}
.modal-content{
background-color: #92c927;
width: 100%;
padding: 15px;
overflow: hidden;
position: relative;
box-sizing: border-box;
max-width: 650px;
margin:auto;
border-radius:0px;
border: 0px solid #fcfcfc;
padding: 15px;
-webkit-border-image: url(none) 30 stretch; /* Safari 3.1-5 */
-o-border-image: url(none) 30 stretch; /* Opera 11-12.1 */
border-image: url(none) 30 stretch;
}
.modal-close{
font-size: 20px;
float: right;
font-weight: 700;
color: #ffffff;
font-size: 25px;
margin-top: -10px;
transition: all .2s;
cursor: pointer;
width: auto;
}
.modal-close:hover{
color: #3b3b3b;
}
.modal-img img{
width: 100%;
}
.modal-text{
text-align: center;
color:#ffffff;
}
.modal-text h2{
font-size: 24px;
font-weight: 600;
font-family: Lato;
}
.modal-text p{
font-size: 17px;
margin-top: -15px;
margin-bottom: 50px;
font-family: Lato;
}
.modal-footer{
padding: 20px 30px;
color: rgba(255, 255, 255, 0.5);
width: auto;
background-color: #3b3b3b;
margin:-15px;
}
input[type=text].modal-input{
color: rgba(0, 0, 0, 0.5);
width:80%;
background: rgb(255, 255, 255);
border: none;
border-radius: 3px;
outline: rgba(0, 0, 0, 0.5) none 0px;
padding: 15px;
}
input[type=submit].modal-submit-btn{
padding: 14px;
font-size: 14px;
background-color: #3bb4f5;
color:#ffffff;
width:auto;
border:none;
cursor: pointer;
border-radius: 3px;
margin-bottom: -13px;
}
@media screen and (max-width: 27em) {
input[type=text].modal-input{
width:90%;
margin-bottom: 0px;
}
input[type=submit].modal-submit-btn{
width:90%;
}
.modal-text p{
font-size: 15px;
}
}
              
            
!

JS

              
                var modal = document.getElementById('popup-modal');
var btn = document.getElementById("open-popup-modal");
var span = document.getElementsByClassName("modal-close")[0];
btn.onclick = function() {
modal.style.display = "block";
}
span.onclick = function() {
modal.style.display = "none";
}
window.onload = function() {
setTimeout(function() {
modal.style.display = 'block';
}, 3000);
}
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
              
            
!
999px

Console