This is what ngAnimate
was made for. You can use CSS transitions as well to make things relatively simple.
.animate-show {
transition: all linear 0.5s;
opacity: 1;
}
.animate-show.ng-hide-add,
.animate-show.ng-hide-remove {
display: list-item !important;
}
.animate-show.ng-hide-add,
.animate-show.ng-hide-remove {
text-decoration: line-through;
}
.animate-show.ng-hide {
opacity:0;
}
You just have to include the ngAnimate
script and module too.