Skip to content

Commit

Permalink
Merge pull request TheOdinProject#348 from ManonLef/main
Browse files Browse the repository at this point in the history
css-exercise animation 02 - edit syntax
  • Loading branch information
ManonLef authored Jul 18, 2023
2 parents d2b199b + 18b91bc commit 15f62b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions animation/02-pop-up/solution/solution.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ button {
opacity: 0%;
text-align: center;
}

.popup-modal p {
margin-bottom: 24px
margin-bottom: 24px;
}

.backdrop {
Expand All @@ -64,12 +65,10 @@ button {
/* SOLUTION */

.popup-modal {
transition: transform .3s ease-in-out, opacity .4s ease;
transition: transform 0.3s ease-in-out, opacity 0.4s ease;
transform: translate(-50%, -100%);
}

.popup-modal.show {
transform: translate(-50%, -50%);
}


4 changes: 2 additions & 2 deletions animation/02-pop-up/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ button {
opacity: 0%;
text-align: center;
}

.popup-modal p {
margin-bottom: 24px
margin-bottom: 24px;
}

.backdrop {
Expand All @@ -60,4 +61,3 @@ button {
.backdrop.show {
opacity: 30%;
}

0 comments on commit 15f62b3

Please sign in to comment.