Page 1 of 1

css3, html5

Posted: 01 May 2013, 04:34
by garcia1968
The game I'm working on uses pieces that can be placed vertically or horizontally. I've got two separate images for vertical and horizontal pieces and know how to do this with existing css with two separate images, but was looking at articles on css3 and 'rotate' images in css3 to be able to do it with only one image.

http://www.developerdrive.com/2012/05/r ... transform/

I'm guessing the conditions needed to advocate using these more advanced css3 and html5 supported features would be some majority of site browsers supporting them.

Thanks
Jeremy

Re: css3, html5

Posted: 01 May 2013, 14:34
by sourisdudesert
Hello,

Indeed for a game I used this:

http://jimfulton.info/demos/dojo-animated-rotate.html

As it is using different properties for each browser it's compatible with all modern browsers. I find it acceptable for BGA, and I think you should use it.

Cheers,

Re: css3, html5

Posted: 02 May 2013, 12:09
by garcia1968
Cool! Thanks for the tip. I need to remember to start including 'dojo' in my web searches and trying to find some good dojo sites to pull examples from.