desandro/isotope — Issue #155: CSS animation seems to be incompatible with jQuery 1.7
Author: khiltd
Created: 2012-03-02 04:56:30+00:00
State: open

Isotope's `_processStyleQueue` seems to be invoking each element's `css` method with parameters that don't make a lot of sense and aren't understood by jQuery's `style` method.

Specifically, Isotope calls `css` with objects as both parameters, the first being

`{"translate":[0,0]}`

and the second being

`{"queue":false,"duration":800}`

This doesn't match any documented signature of the `css` method:

http://api.jquery.com/css/

and tracing the call chain all the way through to the `style` method, I'm seeing `type` being set to `object` on line 6525 which no conditional in said function is capable of contending with. It ultimately returns, having done nothing, and there are no animations run.

I don't have a public URL that this can be seen on, but jQuery's docs don't say you can pass two objects to `css`, and I'm not sure why you'd ever want to given what it does, so I'm prone to thinking that Isotope is in the wrong here. Is it supposed to work?