CoStrategix interview question

write a algorithm for jquery animate function