Handle animation via CSS