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 animate( timings: string | number, styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata |null = null ): AnimationAnimateMetadata;
duration delay easing
animate("200 ease-in", ...) // 被编译成 duration=200, easing=ease-out animate("200 1000 ease-in", ...) // 被编译成 duration=200, delay=1000, easing=ease-out
animate(timings, style({ background: "red" })) animate(timings, keyframes([ style({ background: "blue", offset: 0.2})), // 20% style({ background: "red", offset: 1})) // 100% ])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
animate : 动画
timings :
它是一个字符串,有三个参数:duration delay easing
如果只有一个数字,那么会被认为是 duration 的值。如:
styles:
它可以是 style(样式) 或 keyframes(关键帧),具体用法看下面详细介绍。The text was updated successfully, but these errors were encountered: