Soon I’ll copy the HTML and CSS that was used to create these onto my portfolio website so you can see them in action!
I am using CSS3 transitions to do rotations. My observations:
- PNG and SVG images look sharp in Chrome. However, when they move, they go jagged. To fix this tendency in Chrome, you need to make a SVG file which is exactly the size you will display it on the page. Then in the CSS, you declare the size as well (I used just the width property). This exact size specification will make the SVG appear smoothly in IE 9.
- Any version of IE before 9 will either a) not display your SVG at all or b) show a red x box.
- The unpleasing way of doing things is to then make a JPG image which you can have animated in compatible browsers but will not move in non-modern browsers.