【HarmonyOS Next之旅】基于ArkTS开发(三) -> 兼容JS的类Web开发(七) -> JS动画(一)
原创
目录1>获取动画对象2>设置动画参数3>添加事件和调用方法1>获取动画对象通过调用animate方法获得animation对象,animation对象支持动画属性、动画方法和动画事件。<!test.hml><divclass"container"><divid"content"class"box"onclick"Show"><div><div>test.css.container{flexdirection:column;justifycontent:center;alignitems:center;width:100%;}.box{width:200px;height:200px;backgroundcolor:ff0...