svg+css实现环形昼夜切换动画代码

代码语言:html

所属分类:布局界面

代码描述:svg+css实现环形昼夜切换动画代码

代码标签: svg css 环形 昼夜 切换 动画 代码

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

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

<head>
  <meta charset="UTF-8">
  


  
  
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  min-height: 100vh;
  background: #f2edff;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
 
#wrap {
  position: relative;
  width: 220px;
  height: 220px;
  cursor: pointer;
  filter: drop-shadow(0 6px 28px rgba(119,48,236,0.38));
  transition: filter 1s cubic-bezier(0.4,0,0.2,1);
}
 
/* owns clip-path + breathing anim — JS never mutates this element */
#blobOuter {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: path('M 112 6 C.........完整代码请登录后点击上方下载按钮下载查看

网友评论0