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

使用QueueAnim做进场动画时,会出现抖动 #509

Open
SmileABC opened this issue Jan 10, 2022 · 2 comments
Open

使用QueueAnim做进场动画时,会出现抖动 #509

SmileABC opened this issue Jan 10, 2022 · 2 comments

Comments

@SmileABC
Copy link

使用QueueAnim做进场动画时,会出现抖动,动画时间调整的长一些会比较明显一些

@SmileABC
Copy link
Author

SmileABC commented Jul 8, 2022

底层居然是用的 setTimeout 去实现的动画。。。。。

@SmileABC
Copy link
Author

<QueueAnim
duration={ 1000 }
animConfig={{ opacity: [1, 0] }}
animatingClassName={['animate__fade-in-up']}
>

我是用 animConfig 参数把默认动画替换掉,然后用 animatingClassName 自己去写个动画类名,用 css3 来实现动画不会卡顿

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