benbarnett / jquery-animate-enhanced

Extend $.animate() to detect CSS transitions for Webkit, Mozilla, IE>=10 and Opera and convert animations automatically.
http://playground.benbarnett.net/jquery-animate-enhanced/
MIT License
1.39k stars 196 forks source link

Issue with "bottom" #125

Open asoyfer opened 11 years ago

asoyfer commented 11 years ago

Hi Ben,

Posted this on the other site because I wasn't sure if it was a bug but I guess it is. I have a div positioned absolutely with "bottom" and "left" set in a pixel value. Bottom is set to 100px. When I try to .animate({bottom: 150}) my expectation is that the element will move up 50 more pixels but it moves down and its "bottom" is now set to 50px. Calling .animate({bottom: 150}) again moves it up to bottom: 100 and calling it again will move it back down. I thought this works like jquery animate?

Thanks Anatoly

mjsarfatti commented 10 years ago

Same issue here. It looks like the bottom is animated to the difference between the values.

My div is set with bottom to 202px, and if I try to animate it to 240px, it instead pulls it down to 38px. Really weird...

isayeter commented 8 years ago

same issue, any update ?