纯css实现三维立体盒子背景效果代码
代码语言:html
所属分类:背景
代码描述:纯css实现三维立体盒子背景效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> html { --sz: 10px; --c1: #edf6fb; --c2: #94afbd; --c3: #46525e; --c4: #2e353c; --ts: 50%/ calc(var(--sz) * 18.8) calc(var(--sz) * 10.8); margin: 0; padding: 0; height: 100vh; overflow: hidden; background: /* I have repeated some sentences to avoid errors at the edges of the tiles */ conic-gradient(from 0deg at 65% 35%, var(--c3) 0 120deg, #fff0 0 100%) var(--ts), conic-gradient(from 0deg at 65% 35%, var(--c3) 0 120deg, #fff0 0 100%) var(--ts), conic-gradient(from 240deg at 35% 35%, var(--c2) 0 120deg, #fff0 0 100%) var(--ts), conic-gradient(from 240deg at 35% 35%, var(--c2) 0 120deg, #fff0 0 100%) var(--ts), conic-gradient(from 60deg at 75% 65%, var(--c4) 0 60deg, #fff0 0 100%) var(--ts), conic-gradient(from 60deg at 75% 65%, var(--c4) 0 60deg, #fff0 0 100%) var(--ts), conic-gradient(from 240deg at 25% 65%, var(--c4) 0 60deg, #fff0 0 100%) var(--ts), conic-gradient(from 240deg at 25% 65%, var(--c4) 0 60deg, #fff0 0 100%) var(--ts), conic-gradient(from 60deg at 65% 65%, v.........完整代码请登录后点击上方下载按钮下载查看
网友评论0