added animation direction in block;
added action block