HTML5 / js - how to animate straight line between two coordinates?

前端 未结 5 2261
你的背包
你的背包 2021-02-07 23:37

Simple enough question (could be wrong)

im looking to animate between two points in a straight line, using HTML5 and/or Jquery.

ctx.beginPath();
ctx.mov         


        
5条回答
  •  悲&欢浪女
    2021-02-07 23:55

    You should check this out : http://paulirish.com/2011/requestanimationframe-for-smart-animating/ it is fairly easy to do, after reading it you should be able to do it! There is also an example.

提交回复
热议问题