Simple jQuery modal with form.
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. - 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', }); }
});
Developer | Eric Franklin |
Username | FDfranklin |
Uploaded | July 25, 2022 |
Rating | 3 |
Size | 3,382 Kb |
Views | 32,384 |
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!
Name | Size |
Lightning Vs. Penguins Hover Thingy | 3,000 Kb |
Donation Counter | 2,994 Kb |
Gif play on hover. | 2,586 Kb |
Iguana Blog - LESS | 3,430 Kb |
Animated Image | 1,649 Kb |
Fun nav bar blog style | 4,813 Kb |
A Pen by Eric Franklin | 3,491 Kb |
Fun with input fields. | 3,117 Kb |
Responsive Table Idea | 2,358 Kb |
Auto Loan Calculator | 3,728 Kb |
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!
Name | Username | Size |
Stylize Stories | Jvhti | 2,465 Kb |
Sitemap generator for Sharepoint | Gyusza | 2,518 Kb |
Scoreboard.js basic usage | Tbleckert | 1,733 Kb |
Basic template | Tomcat | 1,675 Kb |
Basic 3D Fullscreen Transition | Apetrov | 3,270 Kb |
BlueBox Fork | Huskynation | 12,675 Kb |
Pure CSS Menu | Bronsrobin | 3,321 Kb |
VerbalExpressions Converter | Cmalven | 2,607 Kb |
Jquery 2d character movement | Drewtadams | 4,291 Kb |
A Pen by Gregory Potdevin | GregoryPotdevin | 1,713 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!