Coder Wrap provides free to use snippets Coder Wrap provides free to use snippets

🗙
Login
Register

Create Account

Cancel
Back to Popup & Model Popup
Preview Source Code
Download
HTML
CSS
/**Typeo CSS Start**/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
*{ box-sizing: border-box;}

body {
  font-family: "Poppins", sans-serif;
  color: #444;
  box-sizing: border-box;
  background-color: #f5f5f5;
  margin: 0px;
}
.pupop-btn{background: #ff6200;
    font-size: 16px;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    margin: auto;
    justify-content: center;
    cursor: pointer;
    max-width: 300px;
    margin-top: 10%;}
/**Typeo CSS End**/ 
.modelpopup-btn {background: #ff6200;
    font-size: 16px;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    margin: auto;
    justify-content: center;
    cursor: pointer;
    max-width: 300px;
    margin-top: 10%;}
.model-ovelay {
	position:fixed; 
	transition:all 0.6s ease 0.6s;
	-webkit-transition:all 1s ease 0s;
	visibility:hidden; 
	opacity:0; 
	width:100%; 
	height:100%; 
	float:left; 
	background:rgba(0, 0, 0, 0.8);
	pointer-events: auto;
	top: 0px;
	z-index: 988;
}
 .modelclose{ 
 	cursor:pointer; 
 	float:right; 
 	width:28px;
 	font-size: 24px; 
 	height:28px; 
 	text-align:center; 
 	background:#ff6200; 
 	line-height:28px; 
 	color:#fff;
 	position: absolute;
 	right: 0px;
 	top: 0px;
 	z-index: 1;
 }
.popupmodel{
	max-width:600px;
	transition:all 1s ease 0s; 
	-webkit-transition:all 1s ease 0s; 
	margin:auto; 
	background:#fff; 
	position:fixed; 
	top:-100%; 
	left:0px; 
	right:0px;
	pointer-events: none;
	z-index: 999;
	max-height: 95%;
    overflow: auto;
}

.custom-popup .model-ovelay{ 
	pointer-events: auto; 
	opacity:1; 
	visibility:visible;
}
.custom-popup .popupmodel {
	pointer-events: auto;
	top: 50%;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
}

/*Inner Model Popop Start*/

.popupmodel-inner {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    position: relative;
    padding: 30px 30px 30px 30px;
    color: #000;
}

.m-form-group {
    width: 49%;
}

.model-cont-prt .m-form-group .m-label {
    width: 100%;
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
}

.m-form-group input {
    width: 100%;
    border: #ccc 1px solid;
    font-family: 'Poppins';
    padding: 12px;
    outline: none !important;
}

.m-form-group input:focus {
	border-color: #000;
}
.submit-btn { 
	outline: none !important;
	background: #ff6200;
    font-size: 16px;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    width: 100%;
    margin-top: 10px;
}
.submit-btn:hover { opacity: 0.8 }

/*Inner Model Popop End*/
.model-img-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    background-size: cover;
    left: 0px;
    opacity: 0.2;
    pointer-events: none;
}
.model-logo {
	max-width: 200px;
	margin: auto;
	width: 100%;
}
.popupmodel-inner h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 0px;
    text-transform: uppercase;
    font-size: 24px;
}
.popupmodel-inner p{
	text-align: center;
}
form.model-form {
   width: 100%;
   display: flex;
   justify-content: space-between;
   flex-flow: row wrap;
}
@media (max-width: 600px) {
.popupmodel { 
	max-width: calc(100% - 30px);
}
.popupmodel-inner {
	padding: 15px;
}	
.m-form-group {
    width: 100%;
    margin-top: 10px;
}
.popupmodel-inner h3 {
	font-size: 20px;
}
.popupmodel-inner p { 
	margin: 10px 0px 0px 0px;
	font-size: 14px;
}
}
JS
function popupModel() {
 document.body.classList.add('custom-popup');
}
function popupModelClose() {
 document.body.classList.remove('custom-popup');
}

Related Snippets

Leave a comment

Your email address will not be published. Required fields are marked *