Reputation: 1
How can I move an image from left to right repeatedly in KineticJS?
Also, how do I change the speed of the animation cycle?
Upvotes: 0
Views: 1281
Reputation: 112
If you're using Kinetic.Image, you could use yourImage.move(yourNewXCoordinate, yourNewYCoordinate). For the speed, I recommend you to use TweenMax from greensock. Here's the link http://www.greensock.com/gsap-js/
Upvotes: 5