JHChainableAnimations icon indicating copy to clipboard operation
JHChainableAnimations copied to clipboard

Combine animations with different durations

Open abekert opened this issue 6 years ago • 2 comments

Hello! I need to fade in a view while it is moving to its destination point. So I setup it with zero alpha and start coordinates, then I need to move it to the destination in 1 second and change its alpha to 1 in 0.3 second.

Is there a possibility to do that? a.makeOpacity(1).animate(0.3).moveX(destination).animate(1) doesn't work.

abekert avatar Oct 11 '17 10:10 abekert

Try 2 different animators and start them at the same time

jhurray avatar Oct 11 '17 20:10 jhurray

@jhurray not working (modify from example) self.animator.moveY(-200).animate(2); self.animtor2.makeOpacity(0).animate(4);

nothing animation!!

dourgulf avatar Jan 04 '18 09:01 dourgulf