你可以在 css 中设置,请看这里http://plnkr.co/edit/63eCUz?p=preview
第一季度:
transition: 100ms <- just adjust transaction duration
第二季度:
.animateToaster-enter.animateToaster-enter-active,
.animateToaster-leave {
opacity: 1; <-set that to 1 instead of 0.8
}
示例 CSS 代码:
/*Animation CSS3*/
.animateToaster-enter,
.animateToaster-leave
{
-webkit-transition: 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
-moz-transition: 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
-ms-transition: 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
-o-transition: 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
transition: 100ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
}
.animateToaster-enter.animateToaster-enter-active,
.animateToaster-leave {
opacity: 1;
}
.animateToaster-leave.animateToaster-leave-active,
.animateToaster-enter {
opacity: 0;
}