Home > front end >  Why use canvas without directly using div
Why use canvas without directly using div

Time:09-21

About canvas , is a 2 d drawing, saw some API, it also is to draw a rectangle, draw circle, adjust the Angle, the gradient... And so on, but the problem is the use of DIV + CSS 3 can be completely done, canvas to do animation, also is to use JS to perform regularly, every time to redraw the entire TAB interface, and implemented using DIV animation, I can only where it is needed for the animation, so canvas exactly what good? Why so many people to chase??? Is a mystery,,,,,,, looking for out of it what's the cow force,,,,

CodePudding user response:

DIV + CSS 3 can replace canvas? Why can't. Otherwise invented canvas

CodePudding user response:

You try to do a stock chart, knew why use canvas,
Can you put me the https://github.com/jones2000/HQChart k line graph using div + CSS to make to try
  • Related