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: #08c6fb;
    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: #08c6fb;
    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:36px;
 	font-size: 24px; 
 	height:36px; 
 	text-align:center; 
 	background:#08c6fb; 
 	line-height:36px; 
 	color:#fff;
 	position: absolute;
 	right: 0px;
 	top: 0px;
 }
.popupmodel{
	width:900px; 
	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 img {
	max-width: 100%;
	display: block;
	height: 100%;
    object-fit: cover;
}
.popupmodel-inner {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
}

.popupmodel-inner .model-img-prt {
    max-width: 50%;
}

.popupmodel-inner .model-cont-prt {
    max-width: 50%;
    width: 100%;
    padding: 30px 30px 10px 30px;
}

.model-cont-prt h3 {
    margin: 0px;
}

.popupmodel-inner .model-cont-prt p {
    font-size: 14px;
    line-height: 1.3;
}

.model-cont-prt .m-form-group {
    width: 100%;
}

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

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

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

/*Inner Model Popop End*/
@media (max-width: 1000px) {
	.popupmodel { 
		max-width: calc(100% - 30px);
	}
}
@media (max-width: 600px) {
	/*Inner Model Popop Start*/
	.popupmodel-inner .model-img-prt, 
	.popupmodel-inner .model-cont-prt {
    	max-width: 100%;
	}
	/*Inner Model Popop End*/
}
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 *