I have the followings in the animations array of a component:
trigger('...', [
state('off', style({ color: 'red', opacity: 0 })),
state('on', style({ color: 'green', opacity: 1 })),
transition('off <=> on', animate(500)),
])
Right now, both rules are animated at 500ms, however I'd like to animate opacity at a different time (i.e. 250ms). How do I do that?