咏竹莉
where there is a will,there is a way

 

还是css3实现的效果:

.transfBg {
  position: absolute;
  width: 480rpx !important;
  height: 480rpx !important;
  left: 50%;
  top: 50%;
  margin: -240rpx 0 0 -240rpx;
  animation: headRotate 6s linear infinite
}

/* 头像旋转效果  */
@keyframes headRotate {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

  

posted on 2023-03-24 11:29  咏竹莉  阅读(335)  评论(0编辑  收藏  举报