A question surfaced when implementing a jQuery slider with the help of another user on this website. The issue arose when transitioning the code from the working fiddle to my computer, resulting in a problem that needs addressing. Here is the original fiddle:
The code structure is quite straightforward - images are hidden using a 'hide' class and then faded in/out during transitions.
$("active image").fadeIn();
$("to hide image").fadeOut();
$("to hide image").fadeOut();
$("to hide image").fadeOut();
However, an issue has arisen which needs attention.
(Note: GIFs may take time to load, if not visible, here's the direct link:
This sped-up GIF highlights the problem where clicking a button causes the current image to disappear, followed by a slight delay before the next image loads. I attempted to use .delay() but encountered no success.