added span in input div for positioning
jshint
changed to smoother animation
display reasons