adds animate directive