html5 - Animation SVG or Canvas? -


i wondering whether it's better make animation this in canvas or svg (performance wise)? i'm rewriting in jquery read somewhere canvas redrawn every time changes.

for these "simple" animations , scene graphs doesn't matter if use svg or canvas performance wise. both should work fine without performance issues.

however might easier create animation svg compared canvas. in canvas have redraw whole scene , in svg create ring once , define transformation (rotation) on it.

for svg check out d3.js or raphael , canvas can check out processingjs, fabric.js, kinetic.js or paper.js


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -