Added animation support for setPosition.