Open jjmaceda opened 11 years ago
Same problem animating from NEGATIVE on 'bottom'.
In _function applyCSSTransition(e, property, duration, ... i changed:
offsetPosition = value - cleanPropertyValue;
To:
if (property=='bottom' || property=='right')
offsetPosition = value;
else
offsetPosition = value - cleanPropertyValue;
Horrible hack, untested, didn't investigate anything properly - just needed a solution. BEWARE!
Thanks for posting that fix, hitchhiker. It makes the "right" property animate as expected.
I've run into this problem on multiple projects now. Ben, would you please fix this?
In case anyone would like to know, to apply hitchhiker's fix to the current minified version, you change s=f-p; to s=(b=='bottom'||b=='right')?f:(f-p);
thanks ! this works for "bottom" too !
if I try to animate
$('.mobile-menu').animate({ right: 0 },
when .mobile-menu has right -200px, the return value for the transition is 200 instead of 0, I track the issue to the private method _applyCSSTransition under
offsetPosition = value - cleanPropertyValue;
value = 0 and cleanPropertyValue = -200 so the offsetPosition give me 200
in needs something else to handle the values correctly thanks!