How to give class name to animation state in angular 2/4?

前端 未结 1 2004
野的像风
野的像风 2021-02-14 01:04

I am using angular Animations with version 4.1.3

Here is the below code:

@Component({
  selector : \'my-fader\',
  animations: [
    trigger(\'visibility         


        
1条回答
  •  无人共我
    2021-02-14 01:48

    You can't. I was also looking for a similar solution.

    Angular Animations use the Web Animations API and not CSS.

    See https://css-tricks.com/css-animations-vs-web-animations-api/ for further reading.

    0 讨论(0)
提交回复
热议问题