Is there a way to add iterations, or something similar to the ccs3 animation-iteration-count in Angular 2 animations? I've looked but can't find anything related. How can we apply an infinite play to the animation?
Where should we include that option?
animations: [
trigger('flyInOut', [
state('in', style({transform: 'translateX(0)'})),
transition('void => *', [
animate(1500, keyframes([
style({transform: 'translateX(-102%)'}),
style({transform: 'translateX(102%)'})
]))
]),
transition('* => void', [
animate(1500, keyframes([
style({transform: 'translateX(-102%)'}),
style({transform: 'translateX(102%)'})
]))
])
])
]