I can't seem to figure out why it is doing this. I have made my own image slider. I am using this css transition library from jquery:
https://github.com/louisremi/jquery.transition.js/
Now when I first made the widget transition animations worked flawlessly. After fidgeting with stuff for while I come back to it and get a very wierd bug. When a setTimeout function calls my next slide function the screen refreshes and goes white then redraws everything and then the image fades in. If I call the same function with an onclick it works fine.
See if anyone else gets the same bug.