css布局实现煤油灯燃烧动画效果代码
代码语言:html
所属分类:动画
代码描述:css布局实现煤油灯燃烧动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { background: #1D2A3C; height: 100vh; overflow: hidden; display: flex; } div { position: absolute; } .lanthanum { width: 100%; height: 100%; transform: scaleY(0.5); } .hat { top: calc(50% - 100px); left: 50%; } .hat .top { top: -30px; left: -30px; width: 60px; height: 60px; background: #323c46; border-radius: 99px; } .hat .body { top: -30px; left: -30px; width: 60px; height: 80px; background: #191e23; border-radius: 99px; } .hat .brimtop { top: -20px; left: -40px; width: 80px; height: 80px; background: #323c46; border-radius: 99px; } .hat .brimbody { top: -20px; left: -40px; width: 80px; height: 100px; background: #191e23; border-radius: 99px; } .hat .handle { top: -65px; left: -45px; width: 90px; height: 120px; border-radius: 20px; border-top: 6px solid #646464; border-bottom: 6px solid #646464; border-left: 3px solid #464646; border-right: 3px solid #8c8c8c; box-sizing: border-box; box-shadow: 0 -3px 0 #969696; } .pedestal { top: calc(50% + 100px); left: 50%; } .pedestal .top { top: -30px; left: -30px; width: 60px; height: 60px; background: #323c46; border-radius: 99px; } .pedestal .body { top: -30px; left: -30px; width: 60px; height: 120px; background: #191e23; border-radius: 99px; } .pedestal .shadow { top: 30px; left: -30px; width: 60px; height: 60px; background: #0d0f12; border-radius: 99px; box-shadow: 0 0 30px rgba(0, 0, 0, 0.8); } .lamp { top: 50%; left: 50%; } .lamp .body { top: -80px; left: -25px; width: 50px; height: 200px; background: rgba(250, 250, 250, 0.15); border-radius: 99px; filter: drop-shadow(0 0 20px #fff); } .lamp .light { top: -80px; left: -25px; width: 50px; height: 200.........完整代码请登录后点击上方下载按钮下载查看
网友评论0