function descAction (element, duration) { console.log(element); var movement = setTimeout(descAction(element, duration), duration); }