我需要帮助ng2动画。我需要准备基于此的简单的悬停效果:Angular2动画简单悬停,没有任何状态变化
@Component({
selector: 'category',
template : require('./category.component.html'),
styleUrls: ['./category.component.scss'],
animations: [
trigger('albumState', [
state('inactive', style({
bottom: '0px'
})),
state('active', style({
bottom: '200px'
})),
transition('inactive => active', animate('100ms ease-in')),
transition('active => inactive', animate('100ms ease-in'))
])
]
})
我需要一个提示如何将它分配给模板?在Ng2 Docs上,我们有基于对象参数的实现。我不需要我的
item/object/album
任何参数从的类别发生变化,只是想分配动画模板。
问候! Greg