Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular state()用法 #19

Open
poetrylife opened this issue Jan 24, 2018 · 0 comments
Open

Angular state()用法 #19

poetrylife opened this issue Jan 24, 2018 · 0 comments

Comments

@poetrylife
Copy link

poetrylife commented Jan 24, 2018

state :定义目标处于某一状态时的样式

function state(
            name: string, 
            styles: AnimationStyleMetadata,
            options?: {params: {[name: string]: any}}
         ):AnimationStateMetadata;
  • name

    当前状态的名字,可以有多个名字,用逗号隔开,如:'active,clicked'
    这个name还可以用 void*表示: void代表动画执行前组件的状态; *代表动画执行后组件的状态,即组件的默认状态。

  • styles :

    处于这个状态时的样式,如style({width: 0})

  • options : 见AnimationStateMetadata函数
@deepthan deepthan changed the title state()用法 Angular state()用法 Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant