Skip to content

Commit

Permalink
fix(modal): do not animate transform-origin
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwoodland committed Jul 6, 2022
1 parent 42323c5 commit a1d482f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/ui/Modal/Modal.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

.modal-background {
&:extend(.blur-less);
background: rgba(0,0,0,0.25);
background: rgba(0, 0, 0, 0.25);
}

.modal-card-body {
Expand All @@ -31,6 +31,7 @@
.modal-card {
width: fit-content;
box-shadow: @ui-shadow;
transform-origin: 50% 200%;
}

.modal-container {
Expand Down Expand Up @@ -97,7 +98,9 @@

.modal-enter-active,
.modal-leave-active {
&, .modal-background, .modal-card {
&,
.modal-background,
.modal-card {
transition: all @animation-speed-long ease;
}
}
Expand All @@ -112,7 +115,6 @@
.modal-card {
opacity: 0;
transform: perspective(400px) rotateX(2deg);
transform-origin: 50% 200%;
filter: @light-blur;
}
}

0 comments on commit a1d482f

Please sign in to comment.