Smoother animation with CSS