mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 00:29:12 +08:00
b445baa001
* chore(deps-dev): bump stylelint-config-prettier from 8.0.2 to 9.0.2 Bumps [stylelint-config-prettier](https://github.com/prettier/stylelint-config-prettier) from 8.0.2 to 9.0.2. - [Release notes](https://github.com/prettier/stylelint-config-prettier/releases) - [Commits](https://github.com/prettier/stylelint-config-prettier/compare/v8.0.2...v9.0.2) --- updated-dependencies: - dependency-name: stylelint-config-prettier dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: autofix stylelint errors * chore: autofix stylelint errors Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: afc163 <afc163@gmail.com>
130 lines
2.0 KiB
Plaintext
130 lines
2.0 KiB
Plaintext
.move-motion(@className, @keyframeName) {
|
|
@name: ~'@{ant-prefix}-@{className}';
|
|
.make-motion(@name, @keyframeName);
|
|
.@{name}-enter,
|
|
.@{name}-appear {
|
|
opacity: 0;
|
|
animation-timing-function: @ease-out-circ;
|
|
}
|
|
.@{name}-leave {
|
|
animation-timing-function: @ease-in-circ;
|
|
}
|
|
}
|
|
|
|
.move-motion(move-up, antMoveUp);
|
|
.move-motion(move-down, antMoveDown);
|
|
.move-motion(move-left, antMoveLeft);
|
|
.move-motion(move-right, antMoveRight);
|
|
|
|
@keyframes antMoveDownIn {
|
|
0% {
|
|
transform: translateY(100%);
|
|
transform-origin: 0 0;
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(0%);
|
|
transform-origin: 0 0;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes antMoveDownOut {
|
|
0% {
|
|
transform: translateY(0%);
|
|
transform-origin: 0 0;
|
|
opacity: 1;
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(100%);
|
|
transform-origin: 0 0;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes antMoveLeftIn {
|
|
0% {
|
|
transform: translateX(-100%);
|
|
transform-origin: 0 0;
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: translateX(0%);
|
|
transform-origin: 0 0;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes antMoveLeftOut {
|
|
0% {
|
|
transform: translateX(0%);
|
|
transform-origin: 0 0;
|
|
opacity: 1;
|
|
}
|
|
|
|
100% {
|
|
transform: translateX(-100%);
|
|
transform-origin: 0 0;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes antMoveRightIn {
|
|
0% {
|
|
transform: translateX(100%);
|
|
transform-origin: 0 0;
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: translateX(0%);
|
|
transform-origin: 0 0;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes antMoveRightOut {
|
|
0% {
|
|
transform: translateX(0%);
|
|
transform-origin: 0 0;
|
|
opacity: 1;
|
|
}
|
|
|
|
100% {
|
|
transform: translateX(100%);
|
|
transform-origin: 0 0;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes antMoveUpIn {
|
|
0% {
|
|
transform: translateY(-100%);
|
|
transform-origin: 0 0;
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(0%);
|
|
transform-origin: 0 0;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes antMoveUpOut {
|
|
0% {
|
|
transform: translateY(0%);
|
|
transform-origin: 0 0;
|
|
opacity: 1;
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(-100%);
|
|
transform-origin: 0 0;
|
|
opacity: 0;
|
|
}
|
|
}
|