Note that there are some explanatory texts on larger screens.

plurals
  1. POJquery fadein fadeout slideshow not working properly
    primarykey
    data
    text
    <p>I have having some trouble with my jquery slidshow @ <a href="http://www.willruppelglass.com/" rel="nofollow">http://www.willruppelglass.com/</a> (bottom)</p> <p>As you can see the images fadein and fadeout and that works properly and the images are coming from the server and I set the height to 200 for each image. The problem I am having is that the images, after the fadeout, are still displaying and I can see them. What I am trying to do is when the image fades out don't display it, but when it fades in, display it. Is this possible?</p> <pre><code>function slideSwitch() { var $active = $('#slideshow IMG.active'); if ( $active.length == 0 ) $active = $('#slideshow IMG:last'); var $next = $active.next().length ? $active.next() : $('#slideshow IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } $(function() { setInterval( "slideSwitch()", 6500 ); }); #slideshow { position:relative; height:200px; } #slideshow IMG { position:absolute; top:0; left:0; z-index:8; opacity:0.0; } #slideshow IMG.active { z-index:10; opacity:1.0; } #slideshow IMG.last-active { z-index:9; } &lt;div id="slideshow"&gt; &lt;img src="upload/&lt;?php echo $array['image'] ?&gt;" height="200" class="active" /&gt; &lt;img src="upload/&lt;?php echo $array['image2'] ?&gt;" height="200" /&gt; &lt;img src="upload/&lt;?php echo $array['image3'] ?&gt;" height="200" /&gt; &lt;/div&gt; </code></pre> <p>Any help would be appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload