Currently, I am in need of creating a slider for a <div>
. However, most plugins are too large for my needs, so I am attempting to develop my own jQuery script since I only require the basic functionality. Admittedly, I am a novice in jQuery and could benefit from some assistance.
Presently, I have a container <div>
(with overflow:hidden
and a width of 250px), inside which there is another <div>
that should move from right to left (width of 2500px). I aim for this div to animate on the $(document).ready
function in increments of 250px to the left, with a 5-second interval. After spending all morning attempting to start this project, I find myself at a standstill.
In addition, I would like to include the following features:
- Once the inner
<div>
reaches the far left, it should fade back to its original position. - A method to create "dots" for navigation to specific positions, where the slides then begin animating from that location.
I understand this is a complex question, but any guidance, no matter how small, would be greatly appreciated.