cycle plugin: navigation outside cycle requires fadeTo twice to take effect
Hi,
The page has a pre-existing navigation. On click of any of the navigation elements I run:
- jQuery('#slider-nav li').removeClass('current');
- jQuery(this).parent().addClass('current');
- jQuery('#frame img').hide();
- jQuery('#img2').fadeTo('fast', 1);
- jQuery('#img2').fadeTo('fast', 1);
- jQuery('#img2').css('cursor', 'pointer');
- Query('#frame').cycle('stop');
- 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?