mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 08:59:40 +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>
180 lines
2.7 KiB
Plaintext
180 lines
2.7 KiB
Plaintext
.zoom-motion(@className, @keyframeName, @duration: @animation-duration-base) {
|
|
@name: ~'@{ant-prefix}-@{className}';
|
|
.make-motion(@name, @keyframeName, @duration);
|
|
.@{name}-enter,
|
|
.@{name}-appear {
|
|
transform: scale(0); // need this by yiminghe
|
|
opacity: 0;
|
|
animation-timing-function: @ease-out-circ;
|
|
|
|
&-prepare {
|
|
transform: none;
|
|
}
|
|
}
|
|
.@{name}-leave {
|
|
animation-timing-function: @ease-in-out-circ;
|
|
}
|
|
}
|
|
|
|
// For Modal, Select choosen item
|
|
.zoom-motion(zoom, antZoom);
|
|
// For Popover, Popconfirm, Dropdown
|
|
.zoom-motion(zoom-big, antZoomBig);
|
|
// For Tooltip
|
|
.zoom-motion(zoom-big-fast, antZoomBig, @animation-duration-fast);
|
|
|
|
.zoom-motion(zoom-up, antZoomUp);
|
|
.zoom-motion(zoom-down, antZoomDown);
|
|
.zoom-motion(zoom-left, antZoomLeft);
|
|
.zoom-motion(zoom-right, antZoomRight);
|
|
|
|
@keyframes antZoomIn {
|
|
0% {
|
|
transform: scale(0.2);
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes antZoomOut {
|
|
0% {
|
|
transform: scale(1);
|
|
}
|
|
|
|
100% {
|
|
transform: scale(0.2);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes antZoomBigIn {
|
|
0% {
|
|
transform: scale(0.8);
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes antZoomBigOut {
|
|
0% {
|
|
transform: scale(1);
|
|
}
|
|
|
|
100% {
|
|
transform: scale(0.8);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes antZoomUpIn {
|
|
0% {
|
|
transform: scale(0.8);
|
|
transform-origin: 50% 0%;
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
transform-origin: 50% 0%;
|
|
}
|
|
}
|
|
|
|
@keyframes antZoomUpOut {
|
|
0% {
|
|
transform: scale(1);
|
|
transform-origin: 50% 0%;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(0.8);
|
|
transform-origin: 50% 0%;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes antZoomLeftIn {
|
|
0% {
|
|
transform: scale(0.8);
|
|
transform-origin: 0% 50%;
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
transform-origin: 0% 50%;
|
|
}
|
|
}
|
|
|
|
@keyframes antZoomLeftOut {
|
|
0% {
|
|
transform: scale(1);
|
|
transform-origin: 0% 50%;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(0.8);
|
|
transform-origin: 0% 50%;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes antZoomRightIn {
|
|
0% {
|
|
transform: scale(0.8);
|
|
transform-origin: 100% 50%;
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
transform-origin: 100% 50%;
|
|
}
|
|
}
|
|
|
|
@keyframes antZoomRightOut {
|
|
0% {
|
|
transform: scale(1);
|
|
transform-origin: 100% 50%;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(0.8);
|
|
transform-origin: 100% 50%;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes antZoomDownIn {
|
|
0% {
|
|
transform: scale(0.8);
|
|
transform-origin: 50% 100%;
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
transform-origin: 50% 100%;
|
|
}
|
|
}
|
|
|
|
@keyframes antZoomDownOut {
|
|
0% {
|
|
transform: scale(1);
|
|
transform-origin: 50% 100%;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(0.8);
|
|
transform-origin: 50% 100%;
|
|
opacity: 0;
|
|
}
|
|
}
|