Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket 3939 - Option to animate children elements in animateClass #154

merged 2 commits into from May 13, 2011


None yet
2 participants
Copy link

commented Mar 14, 2011


$("#element").toggleClass( "className", {
  duration: 200,
  children: true,
  easing: "swing",
  complete: fn

Note that all of the base jQuery functions that take speed, easing, callback can also take { duration: speed, easing: easing, complete: callback } as the speed option for equivalency. I updated the animateClass function to use jQuery.speed() to take extra arguments using the same form and added a o.children option that when truthty causes animateClass to look at the children elements as well.

@gnarf gnarf reopened this May 12, 2011

effects.core: Rework animateClass to support a 'children' option - Fi…
…xes #3939 - Option to animate children elements in animateClass

@scottgonzalez scottgonzalez merged commit 2dcf723 into jquery:master May 13, 2011

thg2k pushed a commit to thg2k/jquery-ui that referenced this pull request Oct 18, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.