Angular - Animations
Identify the error in this Angular animation trigger definition:
trigger('fade', [
state('visible', style({ opacity: 1 })),
state('hidden', style({ opacity: 0 })),
transition('visible <=> hidden', animate('500ms')),
transition('hidden => visible', animate('fast'))
])