It may be challenging to find a Plugin that perfectly aligns with your code. However, I am capable of coding the jQuery components for you. In doing so, I have a couple of questions:
- To what extent can I modify the CSS? Should it still function without JavaScript enabled?
- Will you be sticking with three items in the future, or do you anticipate dynamically changing the number of slides?
// EDIT
The solution is now operational. While not the most elegant, I aimed to minimize alterations to your existing code. I simply adjusted two of your CSS selectors (with the old ones commented out). It's worth noting that this approach allows your previous method to still work if JavaScript is disabled.
Below is the jQuery code snippet...
$("div.one").css({"left":0, "opacity":1});
$("div.two").css({"left":300, "opacity":1});
$("div.three").css({"left":600, "opacity":1});
$("input#first").click(function(){
$("div.one").animate({left:0},600);
$("div.two").animate({left:300},600);
$("div.three").animate({left:600},600);
});
$("input#second").click(function(){
$("div.one").animate({left:-300},600);
$("div.two").animate({left:0},600);
$("div.three").animate({left:300},600);
});
$("input#third").click(function(){
$("div.one").animate({left:-600},600);
$("div.two").animate({left:-300},600);
$("div.three").animate({left:0},600);
});
jsfiddle.net/mYhEV/2/
I hope this proves helpful.
PS: For a more streamlined solution, consider reevaluating your approach. One option is consolidating all sliders within a wrapper and moving only the wrapper as needed.