Skip to content

Conversation

gnarf
Copy link
Member

@gnarf gnarf commented Mar 14, 2011

http://bugs.jqueryui.com/ticket/3939

Usage:

$("#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
…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
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants