我创建了一个表,用户可以在其中增加和减少值。见小提琴
//sample code as its not allowing me to push the link to JSFiddle with out pasting code
<tr ng-repeat="d in dataSource" ng-animate="'animate'">
// css - as from angular page
.animate-enter {
-webkit-transition: 1s linear all; /* Chrome */
transition: 1s linear all;
background-color:Yellow;
}
.animate-enter.animate-enter-active {
background-color:Red;
}
我想在模型更新时做动画,即表格列的背景颜色从红色变为白色,以防用户更改值。
因此,当您单击任何特定列中的向上箭头或向下箭头时,该表列的背景颜色将从红色变为白色。
我无法理解它。关于如何实现这一目标的任何指示?