add before animation block