Jquery code to simple popup onclick
Simple popup onclick using jquery
See this in video: Simple popup
Html page:
Css:
.popup{
top:0px;
left:0px;
width:100%;
height:100%;
position:fixed;
display:none;
background:rgba(0,0,0,0.75);
}
.inner{
max-width:650px;
width:90%;
top:50%;
position:absolute;
-webkit-transform:translate(50%, -50%);
transform:translate(50%, -50%);
box-shadow:0px 0px 6px rgba(0,0,0,0.5);
background:#FFFFFF;
color:#000000;
}
.closing{
display:inline-block;
position:absolute;
width:30px;
height:30px;
padding-top:4px;
transition:0.5s all;
top:0px;
left:0px;
-webkit-transform:translate(50%, -50%);
transform:translate(50%, -50%);
background:#CCCCCC;
font-size:25px;
text-align:center;
font-family: Arial, Helvetica, Sans-serif;
text-decoration:none;
color:#000000;
border-radius:100px;
}
.closing:hover{
-webkit-transform:translate(50%, -50%) rotate(180deg);
transform:translate(50%, -50%) rotate(180deg);
background:#FF0000;
color:#FFFFFF;
text-decoration:none;
transition:0.5s all;
}
Jquery:
Friends, If you have any questions please leave your questions in comment box.Thankyou
See this in video: Simple popup
Html page:
X
This is the tutorial to pop-up the div content onclick using JQUERY with more effective,attractive and responsive manner.
This is the tutorial to pop-up the div content onclick using JQUERY with more effective,attractive and responsive manner.
Css:
Jquery:
Friends, If you have any questions please leave your questions in comment box.Thankyou
Comments
Post a Comment