updated for 3div animations