I am a bit confusing about my issue because it will run locally but does not run on server.
The idea is to animate a table from state increased to the state reduced (and other way round) with window.innerHeight
minus static value (e.g. 150) and on the same time a detail card moves in or out the frame.
app.ts:
animations: [
trigger('BodyDetailsInOut', [
state('in', style({ transform: 'translateY(0)' })),
state('out', style({ transform: 'translateY(100%)' })),
transition('out => in', [style({ opacity: 0, transform: 'translateY(100%)' }), animate('400ms ease-in')]),
transition('in => out', animate('400ms ease-out')),
]),
trigger('TableReduceIncrease', [
state('reduced', style({ height: window.innerHeight - 750 + "px" })),
state('increased', style({height: window.innerHeight - 150 + "px" })),
transition('increased => reduced', [style({ height: window.innerHeight - 150 + "px" }), animate('400ms ease-in')]),
transition('reduced => increased', animate('400ms ease-out')),
])]
However, it works fine locally but on server the table does not reduce.
In the Console a warning occured like:
Invalid keyframe value for property height: -150px
Btw.. is it probably a server-setting issue or completly not allowed to set height like this?