The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Pure CSS vs. SVG performance

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #175182

    I’m doing a little play on Space Invaders. For the uninitiated, here’s what the game looks like:

    Here is a little Codepen I made to give you a basic idea:

    This will be part of a little game I’m making. It’s not a canvas game… because it doesn’t really need to be and there are some style things canvas doesn’t lend itself to. But, it will have a lot of JS.

    Now, I’m trying to decide if I should use divs styled with CSS or an SVG. The divs give me WAAAAAAY more fine-tuned control. But, they will no doubt have a performance hit vs. SVG (or maybe not?).

    Which would you use?

    Note: I’m not crazy about the disgusting amount of markup with the div method… but again, I get all kinds of control.


    Probably going to go with divs on this one.


    Write up a HAML loop and find out :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Other’ is closed to new topics and replies.