ded / bonzo

library agnostic, extensible DOM utility
Other
1.32k stars 137 forks source link

Add browser specific transform shortcut to .css('transform') #24

Closed cjc closed 13 years ago

cjc commented 13 years ago

G'day,

As discussed in the morpheus pull request, I've added the same property name detector to bonzo. I also took the opportunity to add support for 'transform-origin' by the same mechanism.

$(element).css({transform:'rotate(45deg)','transform-origin':'bottom left'})

Cheers, Cameron