feat:add iOS AnimationSet

This commit is contained in:
pengfei.zhou
2019-11-30 18:30:46 +08:00
parent 9c2348a19c
commit d24b8a1789
2 changed files with 95 additions and 3 deletions

View File

@@ -173,19 +173,19 @@ class AnimatorDemo extends Panel {
translate.toTranslationX = 200
translate.fromTranslationY = 10
translate.toTranslationY = 200
translate.duration = 1000
translate.duration = 3000
const scale = new ScaleAnimation
scale.fromScaleX = 1
scale.toScaleX = 5
scale.fromScaleY = 1
scale.toScaleY = 5
scale.duration = 1000
scale.duration = 3000
const rotation = new RotationAnimation
rotation.fromRotation = 0
rotation.toRotation = 6
rotation.duration = 1000
rotation.duration = 3000
animationSet.addAnimation(translate)
animationSet.addAnimation(scale)