中断动画
想象一下 Windows Phone。
有一个球(一个圆)。
当您点击某处时,球会移向该点击处。
当它到达那个位置时,它就会停下来。
你点击其他地方。
球向第二个位置移动。
但是,在它到达目的地之前,您点击了其他地方。第三次点击。
现在球改变方向朝向第三次点击。
朝点击方向移动 - 这是一个简单的动画。
中途改变航向; 你是怎么做到的?
如果我只是停止第一个动画,就没有缓动。
我需要温和、顺利地改变路线。
一个想法?
Picture a Windows Phone.
There is a ball (a circle).
When you tap somewhere the ball moves toward that tap.
When it reaches that spot, it stops.
You tap somewhere else.
The ball moves toward that second spot.
BUT, before it reaches its destination, you tap somewhere else. A third tap.
Now the ball changes directions toward the third tap.
To move toward a tap - this is a simple animation.
To change course mid-stream; how do you do that?
If I simply stop the first animation, there is no easing.
I need to change courses gently, smoothly.
An ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您希望缓动停止在球位于点 2 的位置,然后缓动开始移动到点 3,我会执行以下操作:
这是一个可以提供帮助的图表:
If you want the easing to stop right where the ball is at point 2 and then the easing to start moving to point 3, I would do something like this:
Here is a diagram to help: