1
我总是很难设置AngularJS动画,或者是因为我还没有“明白”TM或者是因为术语颠倒了。我确定它是前者。有人可以解释AngularJs动画命名吗?
例如,下面的CSS工作,即。元素在显示时从左侧飞入,隐藏时飞回左侧。
.fly-from-left {
transition:all linear 0.2s;
left:4px
}
.fly-from-left.ng-hide-remove { // this is the start point of the show animation
left: -20px;
}
.fly-from-left.ng-hide { // this is the endpoint of the hide animation
left: -20px;
}
但我没有得到的是为什么负责显示动画的选择器被称为ng-hide-remove。如果有人能够说明术语,我将来会发现更容易设置动画。