Is it possible to change between two fontawesome icons on hover?

后端 未结 6 1268
情书的邮戳
情书的邮戳 2020-12-05 00:52

I have an anchor tag with a font-awesome icon as follows


6条回答
  •  無奈伤痛
    2020-12-05 01:11

    Simple way open css file of font awesome and change icon code on hover...

    for example below is the code for lock icon

    content: "\f023";
    

    and here below is the code for unlock icon in css which you can put under :hover

    .icon-unlock:before {
      content: "\f09c";
    }
    

提交回复
热议问题