私は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