旋转动画

如创建一个div设置一个宽高给一个1px的边线。css

在css中利用trasfrom:rotate(30deg)可让其旋转30度web

其中trasfrom:rotate是旋转的意思orm

deg角度单位it

其中能够运用-webkit-antmation:div all linear2s infinite io

让其一直循环旋转。infinite:循环 forwards:暂停form

@key frams div{循环

        form{webkit

            trasfrom:rotate(0deg)di

            }时间

        to{

            trasfrom:rotate(360deg)

          }

是整个div从0度旋转到360度,再利用旋转时间或者一直循环就能够实现动漫效果

相关文章
相关标签/搜索