mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
Fix Modal animation
This commit is contained in:
parent
751042b938
commit
71ee13a2a8
@ -15,7 +15,7 @@ export default class Modal extends React.Component {
|
||||
onCancel: noop,
|
||||
width: 520,
|
||||
transitionName: 'zoom',
|
||||
maskAnimation: 'fade',
|
||||
maskTransitionName: 'fade',
|
||||
confirmLoading: false,
|
||||
visible: false,
|
||||
}
|
||||
|
@ -94,11 +94,17 @@
|
||||
text-align: right;
|
||||
border-radius: 0 0 @border-radius-base @border-radius-base;
|
||||
}
|
||||
|
||||
&.zoom-enter,
|
||||
&.zoom-appear {
|
||||
animation-duration: .3s;
|
||||
transform: none; // reset scale avoid mousePosition bug
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.@{dialog-prefix-cls} {
|
||||
width: 600px;
|
||||
margin: 30px auto;
|
||||
margin: 100px auto;
|
||||
}
|
||||
}
|
||||
|
@ -23,6 +23,7 @@
|
||||
transform: scale(0);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user