Learned this one ‘the hard way’ today. Even though jQuery’s moment in the sun would seem to have passed, I discovered one important thing to remember when using jQuery’s .animate()
method:
ALL PROPERTY NAMES MUST BE CAMEL-CASED!
So use paddingLeft
instead of padding-left
or marginRight
instead of margin-right
, etc…