Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *{
- margin: 0; padding: 0;
- box-sizing: border-box;
- }
- button{
- font-family: sans-serif;
- }
- body{
- height: 100vh;
- display: flex;
- justify-content: center;
- align-items: center;
- font-family: 'Poppins', sans-serif;
- }
- .modal-btn{
- padding: 20px 60px;
- background-color: orangered;
- border: none;
- font-size: 24px;
- color: #fff;
- cursor: pointer;
- }
- .modal-container{
- position: fixed;
- width: 100%;
- height: 100%;
- background-color: gray;
- display: flex;
- justify-content: center;
- align-items: center;
- opacity: 0;
- pointer-events: none;
- transition: all 0.3s;
- }
- .modal{
- background-color: #fff;
- width: 95%;
- max-width: 700px;
- text-align: center;
- transform: scale(0.6s);
- transform: transform 0.3s;
- }
- .modal-header{
- background-color: orangered;
- padding: 20px;
- }
- .modal-header h2{
- color: #fff;
- text-transform: uppercase;
- }
- .modal-body{
- padding: 20px;
- }
- .modal-body p{
- line-height: 1.8;
- margin: 20px 0;
- }
- .modal .close-btn{
- padding: 15px 30px;
- border: none;
- background-color: orangered;
- color: #fff;
- text-transform: sans-serif;
- font-size: 20px;
- cursor: pointer;
- margin-bottom: 30px;
- }
- .modal-container.show{
- opacity: 1;
- pointer-events: all;
- }
- .modal-container.show .modal{
- transform: scale(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement