add_animate_dependency function

Add animate dependency