I am looking to create a smooth animation effect for an HTML list that moves from left to right and vice versa with a fixed length. The issue I am encountering is that when I click on the right button, it is replacing the list elements instead of animating them.
Here is what I have tried so far:
$elements.hide();
$elements.slice(counter, counter + showNum).show("fast");
However, this code still results in the list elements being replaced rather than animated.
You can view my code on JSFiddle.