fix to the animate footer function