started converting animation delay to js