📜  角度过渡动画 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:21.908000             🧑  作者: Mango

代码示例1
content_copy
      
      animations: [
  trigger('openClose', [
    state('true', style({ height: '*' })),
    state('false', style({ height: '0px' })),
    transition('false <=> true', animate(500))
  ])
],