Friday 15 May 2015

jquery - Having problems with .fadeOut() and .fadeIn() -


My page makes an AJAX request and receives an array of image links from the server.

If (i == 20) {clearTimeout (timer); Return; } Var img = phparray [i]. file path; $ FadeIn ("fast")} timer = window.setTimeout (function () {fillContent ($) Phaparere, ++ i)}, 400); }

Now, what the image fades and Fidin is, and still most of the images disappear again and then fade. It's almost like a blink I tried, tried to use .hide () but even I have the same problem.

Try

  $ (image) .hide ("slow Show "(slow");   

or

  $ (Image) .FadeOut (SPECIFY_MILLISECONDS_HERE, function () {$ (this) .attr ('src', img). FadeIn (SPECIFY_MILLISECONDS_HERE)})    

No comments:

Post a Comment