use css3 to create loading animation