rstacruz / jquery.transit

Super-smooth CSS3 transformations and transitions for jQuery
http://ricostacruz.com/jquery.transit
7.29k stars 864 forks source link

rotateZ #116

Open scien opened 11 years ago

scien commented 11 years ago

We have rotateX, rotateY, and rotate3d. How about when I just want to rotateZ?

I made 3 quick updates

1.

registerCssHook('rotateZ');

2.

rotateZ: function(theta) {
  this.rotateZ = unit(theta, 'deg');
},

3.

(i === 'rotateZ') ||

updates. Everything works as expected on my browsers. Thoughts? Any reason this was left out?

dcristi commented 11 years ago

browser rendering is done in the z plane, so rotate does the same thing as rotateZ

see http://www.eleqtriq.com/wp-content/static/demos/2010/css3d/img/perspective_e.jpg

pretty sure they've omitted this to keep the code small