import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
imports: [BrowserAnimationsModule]
import {trigger,state,style,query,animate,transition} from '@angular/animations'
import {t} from '../../animations'
@Component({
selector: 'app-hero-list',
templateUrl: './hero-list.component.html',
styleUrls: ['./hero-list.component.css'],
animations:[t]
})
export const t=trigger('t0',[
state('open',style({width:'50px'})),
state('close',style({width:'100px'})),
transition('open<=>close',[animate('1s')
])
])