switching css3 to setTimeout