css3 - Plugin for CSS Transitions via jQuery addClass? -
i'm looking library allow me use css transitions via jquery's addclass
/ removeclass
/ toggleclass
functions. i.e. want these functions nothing (other adding css class) in webkit, use jquery animations in ie. jqueryui replaces these 3 functions , comes close need, works on exact element (e.g $('#myid').addclass('foo');
doesn't animate #myid.foo .someclass
)
i've looked around , can't find this, knows of 1 :) if not, solution requires:
- parsing stylesheets on page css transition properties
- matching stylesheets transitions (e.g.
-webkit-transition
) - storing these stylesheets
- on
addclass
, etc match current , down tree (e.g..addedclass .someotherclass
) - apply animations matched elements (or style rule)
so if knows of existing solutions parse stylesheets (the text of them) or animate rule (instead of individual nodes), helpful well.
looks want jquery++
jquery.animate overwrites $.fn.animate use css 3 animations if possible. takes same arguments original $.fn.animate , fall jquery’s javascript animation if css animation not possible.
your proposed approach seems little bit complicated me, maybe comes solution ;)
Comments
Post a Comment