css实现幻觉旋转动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现幻觉旋转动画效果代码

代码标签: 旋转 动画 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">

  
  
<style>
body {
  width: 100vw;
  height: 100vh;
  background-color: black;
  overflow: hidden;
  display:flex;
  align-content:center;
  justify-content:center;
}

.center {
  display: flex;
  align-content: center;
  justify-content: center;
  align-self: center;
  width: 60vw;
  height: 60vw;
  border-radius: 50%; 
  animation: big_spin 10s linear infinite;
}

.spin {
  width: 90%;
  height: 90%;
  background: conic-gradient(orange, deeppink, teal, orange);
  border-radius: 50%;
  align-self:center;
  display:flex;
  align-content:center;
  justify-content:center;
  animation: inside 5s linear forwards;
}


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

@keyframes inside {
    100% {
    transfor.........完整代码请登录后点击上方下载按钮下载查看

网友评论0