Jump to content

reseting fadeTo in jquery


Recommended Posts

Hey guys kind of a wierd issue im having with using fadeTo i have this code being triggered with a clickI notice if I keep clicking on it fast it doesnt reset. like i would of thought. what happends is first click starts optacity at 40 then fades outthen 2nd fast click doesnt reset doesnt start at 40 but does replace the information so its like i cant assign anymore animation until the fadeOut has finished?

	  $('div#display_sector').fadeTo(0,0); // reset to 0 	  $('div#display_sector').fadeTo(0,.4); // start at 40 	  $('div#display_sector').html(session_x+" - "+session_y); // replace div with information 	  $('div#display_sector').fadeOut(2000); // fade out

Edited by Shadowing
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...