I managed to increment a variable in a not linear way using jQuery easing like this
var currentAngle = 0
$(currentAngle).animate({ currentAngle: 180}, { // from 0 to 180 in 2sec
duration: 2000,
easing: 'easeOutBounce',
complete: function(){
movingarm = false;
animatingArm = false;
}
});
I'm trying to do it without using Jquery now, pure javascript would be ideal. Any suggestions ?
Thanks