My Profile Photo

Rich Werden

Web Developer & Software Engineer


A site for Rich to write about code and show some completed projects for future reference...


#TIL: Camel-Case jQuery Animation

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…