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

关键帧动画在函数式组件中的使用 #7148

Open
anluis opened this issue Jul 24, 2020 · 2 comments
Open

关键帧动画在函数式组件中的使用 #7148

anluis opened this issue Jul 24, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@anluis
Copy link

anluis commented Jul 24, 2020

这个特性解决了什么问题?

在函数式组件中,能够调用微信小程序的this.animate接口(https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html#%E5%85%B3%E9%94%AE%E5%B8%A7%E5%8A%A8%E7%94%BB),
可以使用滚动驱动的动画效果

这个 API 长什么样?

能够在函数式组件中直接调用 animate(...)来设置动画

@anluis
Copy link
Author

anluis commented Jul 31, 2020

@luckyadam @Chen-jj

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 31, 2020

@anluis 试试

import { Current } from '@tarojs/taro'

Current.page.animate(...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants