Skip to content

Commit

Permalink
fix: Badge Animation enter and leave in RTL (#34641)
Browse files Browse the repository at this point in the history
* fix: Badge Animation enter and leave in RTL

* [CodeFactor] Apply fixes to commit 87f1866

[ci skip] [skip ci]

Co-authored-by: codefactor-io <support@codefactor.io>
  • Loading branch information
hmz22 and code-factor committed Mar 22, 2022
1 parent 0a90ac3 commit 0fe8bb9
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions components/badge/style/rtl.less
Expand Up @@ -30,6 +30,19 @@
}
}
}

&-zoom-appear,
&-zoom-enter {
.@{badge-prefix-cls}-rtl & {
animation-name: antZoomBadgeInRtl;
}
}

&-zoom-leave {
.@{badge-prefix-cls}-rtl & {
animation-name: antZoomBadgeOutRtl;
}
}
}

.@{ribbon-prefix-cls}-rtl {
Expand Down Expand Up @@ -65,3 +78,26 @@
}
}
}


@keyframes antZoomBadgeInRtl {
0% {
transform: scale(0) translate(-50%, -50%);
opacity: 0;
}

100% {
transform: scale(1) translate(-50%, -50%);
}
}

@keyframes antZoomBadgeOutRtl {
0% {
transform: scale(1) translate(-50%, -50%);
}

100% {
transform: scale(0) translate(-50%, -50%);
opacity: 0;
}
}

0 comments on commit 0fe8bb9

Please sign in to comment.