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

Animating with percentages fails and changes them to pixels #102

Closed jussiry closed 11 years ago

jussiry commented 11 years ago

The title pretty much sums it up.

Grsmto commented 11 years ago

CSS transforms doesn't support pourcentage. So this is not an issue.

attila commented 11 years ago

I just tried this out and it seems that Chrome and Firefox do accept percentage values for translate[X|Y](). It's also included in the specs: http://www.w3.org/TR/css3-3d-transforms/#transform-functions

benbarnett commented 11 years ago

Thanks guys. Closing...

attila commented 11 years ago

I don't understand. Why are you closing this if it's indeed an issue? The plugin should accept percentage values as the original CSS implementation does.

benbarnett commented 11 years ago

Oops, wrong issue! Sorry

bsahlhof commented 11 years ago

I just want to second the percentage issue. I need to use jQuery UI Slider, which uses percentages when it animates, and unfortunately, I can't use this plugin or the slider doesn't work correctly. Is there any updates to this issue?

PawelGIX commented 11 years ago

I also confirm issue with percentages

b3sam commented 11 years ago

I also have this issue, percentage values are being used as if they are pixel values. For example, animating to a width of 100% results in the element being given a width of 100px.

gopeter commented 11 years ago

Thanks for fixing, but it doesn't work if you want to animate an element which already is positioned with percentage values: http://jsfiddle.net/a7UzC/1/

madskonradsen commented 11 years ago

Same issue as gopeter... Positioning with percentage, and then moving doesn't work...

romainwurtz commented 11 years ago

Same here :/

travisdahl commented 11 years ago

+1

kluplau commented 11 years ago

+1

AndersDJohnson commented 11 years ago

+1

yjukaku commented 11 years ago

I know my commit doesn't work, but it does have a lot of the ground work done to get it fixed. This is an Open Source project ya know :)

FiNGAHOLiC commented 11 years ago

+1

GFoley83 commented 11 years ago

:+1: Any plans to fix this? It's the only thing stopping me from using this plugin.

benbarnett commented 11 years ago

Seems to have had some positive feedback over on #69 so I've merged and released accordingly.

If there's any other issues please re-open another more specific issue and bug report.

dpeukert commented 10 years ago

I still have the issue, probably the same thing as @gopeter.