📜  使字体真棒旋转,但不是悬停时的单词 - CSS 代码示例

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

代码示例1
i:hover::before {
  transform: rotate(360deg);
}

i:before {
  display: inline-block;/* mandatory to be able to use transform */
  transition: 1s all;
}