Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 527 Bytes

animation.md

File metadata and controls

25 lines (22 loc) · 527 Bytes
  • How do you transition between two states:
  animations: [
    trigger('heroState', [
      state('inactive', style({
        backgroundColor: '#eee',
        transform: 'scale(1)'
      })),
      state('active',   style({
        backgroundColor: '#cfd8dc',
        transform: 'scale(1.1)'
      })),
      transition('inactive => active', animate('100ms ease-in')),
      transition('active => inactive', animate('100ms ease-out'))
    ])
  ]
  • How do you define a wildcard state?
* => *
* => active