Skip to content

Commit

Permalink
refactor(animations): Vue3 transition class breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
victorcg88 committed Aug 5, 2024
1 parent 77f4320 commit 0f301c3
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
}

&--top {
&#{$p}--enter,
&#{$p}--enter-from,
&#{$p}--leave-to {
transform: translateY(-100%);
}
}

&--bottom {
&#{$p}--enter,
&#{$p}--enter-from,
&#{$p}--leave-to {
transform: translateY(100%);
}
}

&--top-to-bottom {
&#{$p}--enter {
&#{$p}--enter-from {
transform: translateY(-100%);
}
&#{$p}--leave-to {
Expand All @@ -30,7 +30,7 @@
}

&--bottom-to-top {
&#{$p}--enter {
&#{$p}--enter-from {
transform: translateY(100%);
}
&#{$p}--leave-to {
Expand All @@ -39,21 +39,21 @@
}

&--left {
&#{$p}--enter,
&#{$p}--enter-from,
&#{$p}--leave-to {
transform: translateX(-100%);
}
}

&--right {
&#{$p}--enter,
&#{$p}--enter-from,
&#{$p}--leave-to {
transform: translateX(100%);
}
}

&--left-to-right {
&#{$p}--enter {
&#{$p}--enter-from {
transform: translateX(-100%);
}
&#{$p}--leave-to {
Expand All @@ -62,7 +62,7 @@
}

&--right-to-left {
&#{$p}--enter {
&#{$p}--enter-from {
transform: translateX(100%);
}
&#{$p}--leave-to {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
overflow-x: hidden;
}
&--enter,
&--enter-from,
&--leave-to {
width: 0 !important;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}
&--leave-to,
&--enter {
&--enter-from {
opacity: 0;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
transform $transition-transform-duration ease-out;
}
&--enter,
&--enter-from,
&--leave-to {
transform: translate(-20%, 0);
opacity: 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/x-components/src/components/animations/fade.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
&--leave-to,
&--enter {
&--enter-from {
opacity: 0 !important;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
transition: transform $transition-duration ease-out;
}
&--enter,
&--enter-from,
&--leave-to {
transform: translate3d(0, 50%, 0);
opacity: 0;
Expand Down

0 comments on commit 0f301c3

Please sign in to comment.