[jQuery] Re: chaining events from different sources

2009-03-21 Thread pedalpete

Doesn't look like it would work, as I'm not using an actual jQuery
effect (effects are too slow on iPhone), i'm using 'addClass' with
native CSS animations

Thanks
Pete

On Mar 20, 4:48 pm, Steve s...@quinn.com wrote:
 Not sure if this will work for you but it will let you set off a chain
 of effects:

 http://plugins.jquery.com/project/EffectChain

 On Mar 20, 4:39 pm,pedalpetep...@hearwhere.com wrote:

  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.


[jQuery] Re: chaining events from different sources

2009-03-20 Thread Steve


Not sure if this will work for you but it will let you set off a chain
of effects:

http://plugins.jquery.com/project/EffectChain

On Mar 20, 4:39 pm, pedalpete p...@hearwhere.com wrote:
 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.