mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
fix(tag): Add enter animation
This commit is contained in:
parent
bf7caf9dda
commit
dc1e05f9e9
@ -44,10 +44,11 @@ class AntTag extends React.Component {
|
||||
[prefixCls + '-close']: this.state.closing,
|
||||
});
|
||||
return (
|
||||
<Animate component=""
|
||||
showProp="data-show"
|
||||
transitionName={prefixCls + '-zoom'}
|
||||
onEnd={this.animationEnd.bind(this)}>
|
||||
<Animate component=""
|
||||
showProp="data-show"
|
||||
transitionName={prefixCls + '-zoom'}
|
||||
transitionAppear
|
||||
onEnd={this.animationEnd.bind(this)}>
|
||||
{this.state.closed ? null : (
|
||||
<div data-show={!this.state.closing} className={className}>
|
||||
<span className={prefixCls + '-text'} {...restProps} />
|
||||
|
@ -12,7 +12,6 @@
|
||||
margin-right: 4px;
|
||||
margin-bottom: 8px;
|
||||
transition: all 0.3s @ease-in-out-circ;
|
||||
transform-origin: 100% 50%;
|
||||
vertical-align: middle;
|
||||
opacity: 0.85;
|
||||
overflow: hidden;
|
||||
@ -84,6 +83,12 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
&-zoom-enter,
|
||||
&-zoom-appear {
|
||||
animation: antZoomIn .2s @ease-in-out-circ;
|
||||
animation-fill-mode: both;
|
||||
}
|
||||
|
||||
&-zoom-leave {
|
||||
animation: antZoomOut .2s @ease-in-out-circ;
|
||||
animation-fill-mode: both;
|
||||
|
Loading…
Reference in New Issue
Block a user