each animation in custom functionj