Skip to content

Commit

Permalink
fix: add topLeft and topRight animation (react-component#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeonon authored Oct 27, 2022
1 parent 34903a8 commit 53413e1
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions assets/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,15 @@
}

&-slide-up-enter&-slide-up-enter-active&-placement-topLeft,
&-slide-up-appear&-slide-up-appear-active&-placement-topLeft {
&-slide-up-appear&-slide-up-appear-active&-placement-topLeft,
&-slide-up-enter&-slide-up-enter-active&-placement-topRight,
&-slide-up-appear&-slide-up-appear-active&-placement-topRight {
animation-name: rcSelectDropdownSlideDownIn;
animation-play-state: running;
}

&-slide-up-leave&-slide-up-leave-active&-placement-topLeft {
&-slide-up-leave&-slide-up-leave-active&-placement-topLeft,
&-slide-up-leave&-slide-up-leave-active&-placement-topRight {
animation-name: rcSelectDropdownSlideDownOut;
animation-play-state: running;
}
Expand Down Expand Up @@ -351,6 +354,34 @@
}
}

@keyframes rcSelectDropdownSlideDownIn {
0% {
transform: scaleY(0);
transform-origin: 100% 100%;
opacity: 0;
}

100% {
transform: scaleY(1);
transform-origin: 100% 100%;
opacity: 1;
}
}

@keyframes rcSelectDropdownSlideDownOut {
0% {
transform: scaleY(1);
transform-origin: 100% 100%;
opacity: 1;
}

100% {
transform: scaleY(0);
transform-origin: 100% 100%;
opacity: 0;
}
}

@keyframes rcSelectLoadingIcon {
0% {
transform: rotate(0);
Expand Down

0 comments on commit 53413e1

Please sign in to comment.