After implementing jQuery, I managed to create a unique slider on my website. This slider included a thumbnail with captions for each photo. Positioned below the thumbnail was a progress bar fixed in the center between the caption and the image.
Users can drag the slider left or right. As the slider remains still, the progress bar's width is set to zero. However, when users drag the photo to the left to view the next one, the progress bar's width begins to increase animatedly until it reaches nearly 100%, indicating that the next photo is almost in place before reverting back to 0% width.
Illustration
# Photo
# Progress bar
# Caption
Issue
The progress bar is currently at a specific width (X). When I drag the slider to the left, the width increases as expected but does not reflect the functionality described above.
See Demo Here: