I'm trying to create this carousel from scratch and have this for now.
<script type="text/javascript">
$(document).ready(function() {
setTimeout(function() {
$('.carousel-inner li').animate({
right: '580px'
}, 500);
}, 3000);
$('#right').click(function() {
$('.carousel-inner li').animate({
right: '580px'
}, 500);
});
$('#left').click(function() {
$('.carousel-inner li').animate({
left: '0px'
}, 500);
});
});
</script>
It works when I click "#right" and "#left" but only once. I want to make it work that when I click "#next" again it moves again.
Here is the Fiddle