for script animate class