Improved animation block macro