Angular 4 animation - no animation / duration -


i try animate element in angular 4 in terms of height. regardless of whether use margin-bottom or height attributes changed, change done, without animation, meaning, height/margin-bottom value jumping 200px 0px immediately, without animation , without delay (if specified).

here animation code:

animations: [   trigger('ansichtstate', [     state('nursuche', style({       'margin-bottom': '200px'     })),     state('sucheundergebnisse', style({       'margin-bottom': '0px'     })),     transition('nursuche <=> sucheundergebnisse', animate('4000ms'))   ]) ] 

the template code is:

<header [@ansichtstate]="currentansichtstate">&nbsp;</header> 

currentansichtstate defined correctly , changed separate function.

also margin-bottom value changes 200px 0px done (although duration of 4000ms specified).

what doing wrong?


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -