In this tutorial we will Custom jquery image slider with “Nivo Slider jQuery Script” and CSS3. We will use the “Nivo Slider jQuery Script” because it’s a powerful tool and it’s free. This script has 16 transition effects, it’s simple, flexible and have a lot of more nice features.
eq() function in jquery saves a lot of time and coding as it eliminates looping through nodes. The above jquery operation will log value 4 as eq(3) selects the 4th sibling of the parent element (.parent). The index starts from 0 as 1st element and so on. This method saves a lot of time and coding as it eliminates looping through nodes.
Set Drag Image for an element being dragged. Above code sets a drag image to an element being dragged. You can also assign any css to the dragged element.