search

Home  >  Q&A  >  body text

关于canvas画图和css3动画的脑洞

虽然单个画图和动画看起来比较简单,但是,再简单的东西堆积多了也就不简单了,就像多米诺骨牌,一个骨牌是图形,骨牌倒下是动画,一个牌子倒下了碰到另一个牌子导致另一个牌子倒下,如果css3动画可以应用到canvas的图形,那,某些神人是不是可以在页面上画一些动态的有趣的东西了。菜鸟试了试不出来,请问有人试出来过没?求demo

ringa_leeringa_lee2782 days ago506

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 11:44:42

    Canvas is controlled by JavaScript. There is no need to use CSS3 animation effects because JS can also achieve it.

    reply
    0
  • 黄舟

    黄舟2017-04-17 11:44:42

    A domino is an object, which is then set on the canvas at certain intervals, pushed to the first domino, and then continuously detected to see if a collision occurs. If so, proceed to the first step. Although I can't write it, the idea is definitely like this. .

    reply
    0
  • Cancelreply