Add commend and use shared ptr for attribute animation. [ci skip]