var step = 0, dalwe = 1 ;
function some(){
step = step+dalwe;
console.log(step)
if(step<5) {
$('#ola').animate({
width: '+=95'
},
400, function() {})
}
else {
step = 5
return
}
};
function somewho (){
step = step - dalwe;
console.log(step)
if(step>0){
$('#ola').animate({
width: '-=95'
},
400, function() {})
return
}
else{
step = 1
return
}
}
var step = 0, dalwe = 1 ;
function some(){
step = step+dalwe;
console.log(step)
$('#ola').animate({
width: '+=95'
},
400, function() {
step = (Math.abs(step)%4)
return step
if(step=4) return
})
};