jquery - JavaScript animation is never executed -
pretty simple sliding animation, when click tallarrowsright
div, nothing happens. looking on obvious?
$(document).ready(function(){ var = 3; var current = 1; $(".tallarrowsright").click(function(){ if(current<all){ $(".slideme").animate({left:"-=1000"},500) current = current+1 } })
i believe it's not animation problem, css issue. try add position:relative
.slideme
just click "basic plunk!" :)