Complete the code to import the Angular animation trigger function.
import { [1] } from '@angular/animations';
The trigger function is used to define animation triggers in Angular.
Complete the code to define a simple fade-in animation state.
state('visible', style({ opacity: [1] })),
The opacity value 1 means fully visible.
Fix the error in the animation transition syntax.
transition('hidden => visible', [1]('500ms ease-in')),
The animate function defines the timing and easing of the transition.
Fill both blanks to create a transition from 'void' to 'visible' with a 300ms fade-in.
transition('[1] => [2]', animate('300ms ease-in'))
The transition from 'void' to 'visible' defines the animation when the element enters the view.
Fill all three blanks to define a trigger named 'fadeTrigger' with states 'hidden' and 'visible' and a transition between them.
trigger('[1]', [ state('hidden', style({ opacity: 0 })), state('[2]', style({ opacity: 1 })), transition('[3] => visible', animate('400ms ease-out')) ])
The trigger is named 'fadeTrigger'. It has states 'hidden' and 'visible'. The transition is from 'hidden' to 'visible'.