updated for 3div annimation