HTML:
.popup
.notification(ng-show="showNow", ng-animate="{show: 'animate-enter'}")
| Notification text
CSS:
.popup
.notification
transition-duration 3s
transition-timing-function ease
transition-property all
opacity 0
position: absolute;
width: 250px;
left: 200px;
top: 110px;
z-index: 9;
background: darkorange;
padding: 1rem 1rem;
color #FFF
line-height 1.5
transform translateY(0px)
.popup
.notification.animate-enter-start
opacity 1
transform translateY(-10px)
我正在尝试为弹出窗口设置动画,使其淡入淡出。淡入有效,但在淡入动画播放后它又再次淡出。如何让它保持淡入淡出?
小提琴: