Hi,

> When doing $("#mydiv").animateClass('myFirstClass', 'mySecondClass'), the
> object is transparently cloned at opacity 0.0001 or visibility hidden with
> the given new class, then the style of this clone is computed, then a diff
> is made between the old computed style properties and the new ones, and
> finally our beloved animate() function takes care of the animation, then
> sets the class with className and removes the animated styles again
> (because we don't need them anymore if the class is set on the original).
> harhar :)

I don't think it can be done:

- How does this work with properties like e.g. display, or border-style? You 
  can not gadually blend them.

- An element may be of multiple classes:

  <div class="myclass myotherclass">asdf</div>
  $('.myclass').animateClass('yourclass');

  will the Element be of yourclass and myclass, yourclass and myotherclass or 
  yourclass only?

Christof

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to