javascript - Between SVG and canvas, which is better suited for manipulating/animating several images? Maybe neither and just use css3 transforms? -
the 2nd part of question is, javascript library better/easier manipulate images with? won't drawing shapes or anything. other info: i'll using jquery , don't need support browsers, webkit.
edit: more information: current design layout/draw several rows/columns of images in grid-like layout, image in center being in "focus" (a little larger, border or , text next it). tricky thing want whole canvas of images appear slide/glide on bring random image focus. number of images in grid needs exceed visible in viewport when transition occurs there images occupying canvas. other moving images around, won't blurring them or otherwise modifying them. add user interactions clicking/touching on visible image bring focus manually.
let me know if not clear or still confusing.
i ran across scripty2 seems alternative using canvas/svg purposes. started farting around easeljs last night, , seems might work, i'm wondering if it'll end being more work/complex using standard html/css , tool scripty2 aid animations , click/touch events. looking suggestions. thanks!
the answer depends on manipulation , animation.
if it's translations, css wins speed compared canvas. haven't tested, feel confident beats svg same sort of thing.
if you're going doing non-affine transformations or otherwise messing images (e.g. blurring them) want canvas.
if need event handlers per object, want retained-mode drawing system svg or html+css. haven't done enough css3 transforms how compare in terms of speed svg, not have robust transformation dom of svg.
this rather subjective question (or suite of questions) , haven't yet given sufficient information clear answer possible.
Comments
Post a Comment