[jQuery] chaining events from different sources

[jQuery] chaining events from different sources


I've been trying to work with animation timing, and haven't been able
to get this to work properly.
What I have is that I add a class to an element, and that element is
transitioned via a css transition.
I then want to hide a child element once the css transition is
complete.
I've tried to use a callback on the addClass, but it doesn't seem to
work
[code]
$('div#header').addClass('holdForecastMove', function(){
$('div#holder').hide();
});
[/code]
This is for an iphone targetted site, so using .animation isn't an
option.