Fix issue of css and single image animation