css3随着外层包裹的旋转里面的图标为正

css3随着外层包裹的旋转里面的图标或者文字正

思路:里面的图标的a跟外面包裹的div反方向旋转就行

css:

.order-item{animation: rotation 22s linear infinite;}
.order-item a{animation: rotationback 22s linear infinite;}

 

@keyframes rotation{
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}
@keyframes rotationback{
    from {transform: rotate(360deg);}
    to {transform: rotate(0deg);}
}

 

css3随着外层包裹的旋转里面的图标为正

上一篇:Caused by:org.hibernate.too.schema.spi.SchemaManagementException:Attempt to resolve foreign key metad from jdbc metadata failed to find column mappings for foreign key named[xxxxxxxxxxx]


下一篇:用lnmp架构部署wordpress网站详细步骤