Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图模仿旋转可乐应用程序中瓶子的旋转和Roambie 应用程序中的饼图。. 我想根据用户在该视图上的触摸和滑动来旋转视图。
我目前在做什么:
我相信可乐应用程序的旋转会根据滑动或触摸所花费的距离和时间为瓶子设置动画。但我不确定他们是怎么做到的。
我希望视图最初旋转得更快,然后减速并最终停止。
请分享您对如何解决此问题的想法?
看一下关键帧动画:您必须手动构建动画,但您可以获得任何想要的结果。