Modal de Ofertas
<script src="https://cdnjs.cloudflare.com/ajax/libs/ouibounce/0.0.12/ouibounce.js"></script><div id="showModal">
<div class="underlay"></div>
<div class="modal" id="show">
<div class="modal-body">
<span class="modal-close">×</span>
<div class="content">
Texto ou imagem desejada
</div>
</div>
</div>
</div>#showModal {
display: none;
position: fixed;
z-index: 9999;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#showModal .underlay {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 2;
background-color: rgba(0,0,0,0.5);
cursor: pointer;
-webkit-animation: fadein 0.5s;
animation: fadein 0.5s;
}
#showModal .modal {
width: 600px;
height: 400px;
background-color: #f0f1f2;
z-index: 9999;
position: absolute;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
#showModal .modal-close{
float: right;
}
#show{
display: block;
}Como Usar
Last updated