[jQuery] Re: animate : animable properties

2009-09-14 Thread Nico
Hi, > the goodProps array stores all the properties which you would like to be > able to animate. In fact I already use this solution. I defined a table with all the properties that can be animated, and than I use this reference as a filter. But this way, I don't handle custom animation properti

[jQuery] Re: animate : animable properties

2009-09-14 Thread bjorsq
Try this: function filterInanimate(obj) { var newObject = {}; var goodProps = ['width','height','left','right','top','bottom','margin','background']; for (prop in obj) { if ($.inArray(prop, goodProps) != -1) { newObject[prop] = obj[prop]; } } return ne

[jQuery] Re: animate : animable properties

2009-09-14 Thread Nico
Hello, I didn't find any solution for my problem yet. Can anyone help me ? I have a JS object defining CSS properties. I'd like to remove from this object all the properties that can't be animated. example : I have this object : var myObject = { height: '100px', width: '100px', co