Simple jQuery modal with form.

Developer
Size
3,382 Kb
Views
32,384

How do I make an simple jquery modal with form.?

What is a simple jquery modal with form.? How do you make a simple jquery modal with form.? This script and codes were developed by Eric Franklin on 25 July 2022, Monday.

Simple jQuery modal with form. Previews

Simple jQuery modal with form. - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple jQuery modal with form.</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="overlay"></div>
<div class="modal"> <h1>Your Account</h1> <label for="email">EMAIL</label> <input placeholder="Your address" type="text" /> <label for="password">PASSWORD</label> <input placeholder="Your password" type="text" /> <div class="input"> <input type="button" value="REGISTER"/> <input type="button" value="SIGN IN"/> </div>
</div>
<button>Open Modal</button> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Simple jQuery modal with form. - Script Codes CSS Codes

body { background-color: #323a46; font-family: 'Open Sans', sans-serif;
}
::-webkit-input-placeholder { color: rgba(0, 0, 0, 0.27);
}
.overlay { background: rgba(0, 0, 0, 0.46); height: 100%; left: 0; opacity: 0; position: absolute; top: 0; transition: all 200ms ease-in-out; visibility: hidden; width: 100%; z-index: 99;
}
.modal { background-color: #FFF; border-radius: 3px; bottom: 50%; left: 0; max-width: 380px; margin: 0 auto; opacity: 0; overflow: hidden; position: absolute; right: 0; transition: all 600ms ease-in-out; visibility: hidden; width: 100%; z-index: 999;
}
.modal h1 { color: #323a46; font-size: 28px; font-weight: 200; padding-top: 15px; text-align: center;
}
.modal label { color: #f1b561; font-size: 14px; font-weight: bold; margin-left: 15px; position: relative; top: 20px;
}
.modal input[type="text"] { border: none; font-family: 'Open Sans', sans-serif; font-size: 22px; height: 75px; text-indent: 15px; width: 100%;
}
.modal input[type="text"]:first-of-type { border-bottom: 1px solid rgba(50, 58, 70, 0.31); margin-bottom: 15px;
}
.modal .input input[type="button"] { border: none; cursor: pointer; float: left; font-family: 'Open Sans', sans-serif; height: 50px; width: 50%; transition: all 300ms ease-out;
}
.modal .input input[type="button"]:first-of-type { background-color: #f2f2f2; color: #b4bac4;
}
.modal .input input[type="button"]:first-of-type:hover { background-color: #323a46; color: white;
}
.modal .input input[type="button"]:last-of-type { background-color: #f1b561; color: #FFF;
}
.modal .input input[type="button"]:last-of-type:hover { background-color: #323a46; color: white;
}
button { background-color: #f1b561; border: none; border-radius: 3px; color: #FFF; cursor: pointer; display: block; font-size: 28px; font-weight: bold; left: 50%; margin: 25% auto; padding: 25px; text-transform: uppercase; transition: all 300ms ease-out;
}
button:hover { opacity: .7;
}

Simple jQuery modal with form. - Script Codes JS Codes

$('button').click(function() { $('.modal').css({ 'visibility': 'visible', 'opacity': '1', }); $('.overlay').css({ 'visibility': 'visible', 'opacity': '1', });
});
$(document).mouseup(function(e) { var container = $(".modal"); if (!container.is(e.target) // if the target of the click isn't the container... && container.has(e.target).length === 0) // ... nor a descendant of the container { $('.modal').css({ 'visibility': 'hidden', 'opacity': '0', }); $('.overlay').css({ 'visibility': 'hidden', 'opacity': '0', }); }
});
Simple jQuery modal with form. - Script Codes
Simple jQuery modal with form. - Script Codes
Home Page Home
Developer Eric Franklin
Username FDfranklin
Uploaded July 25, 2022
Rating 3
Size 3,382 Kb
Views 32,384
Do you need developer help for Simple jQuery modal with form.?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Eric Franklin (FDfranklin) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!