refactor code
change doc on animation attribute