Animating background position works on jQuery 1.4.4 but not on 1.7.2

后端 未结 1 1028
谎友^
谎友^ 2021-01-22 01:09

I\'ve run into a problem.

I have a script i\'m tinkering with. All runs fine but only on jQuery 1.4.4. When I move up a version, let\'s say the latest (1.7.2) the script

相关标签:
1条回答
  • 2021-01-22 02:11

    It's a documented bug (http://bugs.jquery.com/ticket/8160) affecting jQuery from version 1.5. So actually there's no way to animate that property on jQuery 1.7.2

    You could instead use .css() instead of animate and then call the function with a small timeout, but the effect would be not really smooth

    Otherwise do instead an animation over the div itself, changing their margin-top/left properties

    0 讨论(0)
提交回复
热议问题