There is the void state for that. Which basically represents a null
state.
In practice, that could look like this:
trigger('myState', [
state('previous', style({ transform: 'translateX(-100%)' })),
state('current', style({ transform: 'translateX(0)' })),
state('next', style({ transform: 'translateX(100%)' })),
transition('void => *', animate(0)), // <-- This is the relevant bit
transition('* => *', animate('250ms ease-in-out'))
])
What this means is that whenever an element doesn't have a state yet, and transitions into any state, it shouldn't animate.
So, in your case it could be written like this:
transition(':enter', animate(0))
I hope that makes sense.