mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 23:00:20 +08:00
a106459dd1
* feat: support Keyframes as 'animationName' value * feat: add zoom animation * chore: code clean * test: fix anim * chore: move file * chore: dep clean
25 lines
395 B
TypeScript
25 lines
395 B
TypeScript
import { Keyframes } from '@ant-design/cssinjs';
|
|
|
|
export const antZoomIn = new Keyframes('antZoomIn', {
|
|
'0%': {
|
|
transform: 'scale(0.2)',
|
|
opacity: 0,
|
|
},
|
|
|
|
'100%': {
|
|
transform: 'scale(1)',
|
|
opacity: 1,
|
|
},
|
|
});
|
|
|
|
export const antZoomOut = new Keyframes('antZoomOut', {
|
|
'0%': {
|
|
transform: 'scale(1)',
|
|
},
|
|
|
|
'100%': {
|
|
transform: 'scale(0.2)',
|
|
opacity: 0,
|
|
},
|
|
});
|