WordPress beautification: a line of code makes your menu icon rotate
I found an icon in the menu of some blogs was turning all the time when I was browsing blogs, and I thought it was very good. So I used firebug to check the style. Add this style to make your small icons rotate.
Add the following code to the topic's css:
- .fa-spin {
- animation: 2s linear 0s normal none infinite running fa-spin;
- }
Then in the menu .fa-spin
Add to the menu. Then you can see the icon rotating
- <i class= "fa fa-wordpress fa-spin" ></i>Watson Blog
Statement: This resource is collected by Watson's blog [wosn. net] and collated on the network. It is only used for exchange and learning, and should not be used for other purposes. In case of infringement, please contact Watson Blog[ admin@wosn.net ]Delete processing.