Added animate and bindElement functions