纯css模拟云朵中的日全食效果
代码语言:html
所属分类:动画
代码描述:纯css模拟云朵中的日全食效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; } body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: radial-gradient(ellipse at center, #999, #000); overflow: hidden; } .eclipse { width: 10rem; height: 10rem; border-radius: 50%; background-color: #000; border: 0.25rem solid #fff0f0; box-shadow: 0px 0px 1rem 0.5rem rgba(255, 240, 215, 0.75); } .group { position: absolute; width: 100vw; height: 100vh; opacity: 0; animation: float 60s linear infinite; animation-delay: -1s; } .group.two { left: -100%; } .cloud { border-radius: 50%; position: absolute; top: -50vh; } .cloud.one { width: 90%; height: 10%; filter: url(#filter-one); box-shadow: 0 60vh 55px 20px rgba(220, 220, 200, 0.8); left: 10%; } .cloud.two { width: 40%; height: 20%; filter: url(#filter-two); box-shadow: 0 80vh 60px 0px rgba(233, 233, 233, 0.8); left: 50%; } .cloud.three { width: 40%; height: 10%; filter: url(#filter-three); box-shadow: 0 100vh 70px 20px rgba(255, .........完整代码请登录后点击上方下载按钮下载查看
网友评论0