We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
function sequence( steps: AnimationMetadata[], options: AnimationOptions | null = null ): AnimationSequenceMetadata;
它可以由样式或动画函数调用组成。对style()的调用将立即应用提供的样式数据,而对animate()的调用将在它延迟时间后应用它的样式数据。
// 这是一个动画序列 sequence([ style({ opacity: 0 })), animate("1s", { opacity: 1 })) ])
它是一个动画列表[A,B,C],里面的动画挨个执行:执行完A再执行B,B执行完再执行C。 它可以应用在 group 和transition里面,它只会在每个内部动画步骤完成后再继续执行下一条指令。
group
transition
将一个数组作为动画数据传递到transition时,默认使用序列。如下面的[animate(500, style({...})), animate(500)]就是序列。
[animate(500, style({...})), animate(500)]
animations: [trigger( 'demo', [ state('void', style({...})), state('*', style({...})), transition( 'void => *', [animate(500, style({...})), animate(500)]) ])],
都是动画列表,序列是一个一个执行,组是并行执行。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
sequence : 序列
steps : 动画序列的步骤
它可以由样式或动画函数调用组成。对style()的调用将立即应用提供的样式数据,而对animate()的调用将在它延迟时间后应用它的样式数据。
options: 参见 AnimationOptions
那到底什么是序列呢?
它是一个动画列表[A,B,C],里面的动画挨个执行:执行完A再执行B,B执行完再执行C。
它可以应用在
group
和transition
里面,它只会在每个内部动画步骤完成后再继续执行下一条指令。将一个数组作为动画数据传递到transition时,默认使用序列。如下面的
[animate(500, style({...})), animate(500)]
就是序列。它和组(group)的异同:
都是动画列表,序列是一个一个执行,组是并行执行。
The text was updated successfully, but these errors were encountered: