rstacruz / jquery.transit

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

Transit fails on prefixless implementations (e.g., Opera Next 12.10, FF16) #82

Open miketaylr opened 12 years ago

miketaylr commented 12 years ago

As browsers support prefixless transforms, $(elem).css('transform') will return "none" rather than the empty string. That will cause "$(elem).css('transform') || new Transform();" to not get to the new Transform() bit, obviously.

You probably need to add a clause that compares against "none".

Opera 12.02:
 >>> $('.field').css('transform')
 ""
 >>> $('.field').css('-o-transform')
 "none"

Chrome:
 >>> $('.field').css('transform')
 ""
 >>> $('.field').css('-webkit-transform')
 "none"

ie9:
 >>> $('.field').css('transform')
 ""
 >>> $('.field').css('-ms-transform')
 "none"

Opera Next:
 >>> $('.field').css('transform')
 "none"
 >>> $('.field').css('-o-transform')
 "none"

Not sure when Firefox, Chrome, and IE10 hit the streets with their prefixless versions, but they're on their way.

Grsmto commented 12 years ago

Yes, same thing for Firefox 16.

miketaylr commented 12 years ago

Clearly I should have looked through the issue tracker a little more. A quick glance shows that: Issue #82, Issue #81, Issue #80, Issue #76, Issue #72, Issue #71, Issue #69, Issue #62, Issue #57 all report (and some provide fixes for) the same issue.

This project appears to be DOA. Bummer.