cycle plugin: navigation outside cycle requires fadeTo twice to take effect

cycle plugin: navigation outside cycle requires fadeTo twice to take effect

Hi,

I have implemented jquery.cycle here: http://theparentingplace.automatem.co.nz
The page has a pre-existing navigation. On click of any of the navigation elements I run:
  1. jQuery('#slider-nav li').removeClass('current');  
  2. jQuery(this).parent().addClass('current');
  3. jQuery('#frame img').hide();
  4. jQuery('#img2').fadeTo('fast', 1);
  5. jQuery('#img2').fadeTo('fast', 1);
  6. jQuery('#img2').css('cursor', 'pointer');
  7. Query('#frame').cycle('stop');
  8. return false;

I found that to make the image corresponding to the navigation item visible, I have to run fadeTo twice otherwise it is not visible. Is this a problem with the cycle plugin, ie is there any event that would prevent the opacity change to work first time?
    • Topic Participants

    • jd