louisremi / jquery.transition.js

Upgrade jQuery's .animate() method to use CSS3 Transitions in modern browsers.
435 stars 81 forks source link

$.animation() + scrollTop issue #9

Closed jarred closed 12 years ago

jarred commented 13 years ago

When jquery.transition.js has been included in a page, the scrollTop animations (example below) stop working. Could jquery.transition be trying to animate this property with css transitions? (which, to my knowledge isn't possible)

  $('body').animate({
    scrollTop: 0
  }, 300);

Is there a way to whitelist properties? So that they're always animated with .js?

louisremi commented 12 years ago

Hi jarred, sorry for not looking at this issue earlier. This bug should be easy to fix. Can you think of any other property that should also be white-listed?

Regards, Lr

louisremi commented 12 years ago

Ok, this should be fixed now. Don't hesitate to warn me about other properties that could cause similar problems.

jarred commented 12 years ago

Thanks Louis! I can't think of any off the top of my head, but I will let you know.