Skip to content

Commit

Permalink
fix: animate modal opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Jan 16, 2024
1 parent 3566261 commit f454696
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/newspack-ui/scss/_modals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
z-index: 2;
width: 100%;
transform: translateY( 50px );
transition: transform 0.1s linear;
opacity: 0;
transition: transform 0.1s linear, opacity 0.1s linear;
}
&[data-state='open'] {
z-index: 99999;
Expand All @@ -32,6 +33,7 @@
opacity: 1;
}
.newspack-ui__modal {
opacity: 1;
transform: translateY( 0 );
}
}
Expand Down

0 comments on commit f454696

Please sign in to comment.