Skip to content

Commit

Permalink
perf(component/layer): improve the performance of the layer transitio…
Browse files Browse the repository at this point in the history
…n using translate3d (#1206)

Co-authored-by: Thomas PIERRE <thomaspierre@ext.adeo.com>
  • Loading branch information
thomasPierreADEO and Thomas PIERRE committed Oct 10, 2022
1 parent fafd6d2 commit ec827b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/styles/components/_c.layer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
justify-content: flex-start;

#{$parent}__dialog {
transform: translateX(-100%);
transform: translate3d(-100%, 0, 0);
}
}

&:not(#{$parent}--ltr) {
justify-content: flex-end;

#{$parent}__dialog {
transform: translateX(100%);
transform: translate3d(100%, 0, 0);
}
}

Expand Down Expand Up @@ -242,7 +242,7 @@
/* States */
#{$parent}__dialog.is-open {
pointer-events: all;
transform: translateX(0);
transform: translate3d(0, 0, 0);
transition: visibility 0s linear 0s, transform 0.4s;
visibility: visible;
}
Expand Down

0 comments on commit ec827b9

Please sign in to comment.