📜  css hover - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:28.984000             🧑  作者: Mango

代码示例6
#element {
  transform: translateX(0px);
  background: #ffffff;
  transition: 0.5s;
}
#element:hover {
  transform: translateX(50px);
  background: #000000;
  transition: 0.5s;
}