animations: [ trigger('triggerName'), [ state('states Name', style()) transition('state Change Expression', [Animation Steps]) ] ] code example
Example: angular transition animation
content_copy
animations: [
trigger('openClose', [
state('true', style({ height: '*' })),
state('false', style({ height: '0px' })),
transition('false <=> true', animate(500))
])
],