-
-
Save khripunovpp/f6df237b6a3f530709373b583b135fe3 to your computer and use it in GitHub Desktop.
Simple Popup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function showPopup() { | |
$('.b-overlay').fadeIn(200, function() { | |
$('.b-popup').fadeIn(500); | |
}) | |
} | |
function closePoup() { | |
$('.b-popup').fadeOut(100, function() { | |
$('.b-overlay').fadeOut(100); | |
}) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.b-popup | |
.b-popup__wrapper | |
button.b-popup__close x | |
.b-popup__inner | |
h3.b-popup__title dfbZfbzf | |
p.b-popup__text gbDFbDFbfb | |
button.b-popup__btn.b-btn Купить сейчас |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.b-popup | |
position: fixed | |
display: none | |
top: 0 | |
left: 0 | |
width: 100% | |
height: 100% | |
z-index: 20010 | |
overflow: auto | |
transition: all 1s ease-in-out | |
opacity: 0 | |
&__wrapper | |
position: absolute | |
top: 50% | |
left: 50% | |
transform: translate(-50%,-50%) | |
margin: 20px |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment