animation css for background span of thumbnail