Shadowing Posted June 15, 2012 Share Posted June 15, 2012 (edited) 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 June 15, 2012 by Shadowing Link to comment Share on other sites More sharing options...
dsonesuk Posted June 15, 2012 Share Posted June 15, 2012 have you tried .stop(true, true) first argument = clear all queued animations including present. second argument = complete current animation immediately. Link to comment Share on other sites More sharing options...
Shadowing Posted June 19, 2012 Author Share Posted June 19, 2012 oh nice, yah that fixed it. kewl just learn something really useful there, thanks man Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now