animate()
介绍
使用 Element 的 animate() 方法来给 UI 元件设置 CSS Animation 动画。
- 使用 getElementById API, 根据
id查找需要做动画的Element对象。 - 调用
Element对象上的animateAPI 实现动画。
使用 Element 的 animate() 方法来给 UI 元件设置 CSS Animation 动画。
id 查找需要做动画的 Element 对象。Element 对象上的 animate API 实现动画。