css实现三维木锯效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现三维木锯效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { min-height: 300px; height: 100vh; position: relative; background-color: #6c350f; } div { position: absolute; left: 50%; top: 50%; } div::before, div::after { display: block; content: ''; position: absolute; } #grain { width: 300px; height: 100px; margin-left: -150px; margin-top: -110px; background: linear-gradient(#8e6937, #8e6937) 100% 61.2%/61.2% 0.2em, linear-gradient(to bottom, rgba(139,69,19,0.2), rgba(139,69,19,0)) 0 0/100% 100%, radial-gradient(ellipse at 0 50%, #f5deb3 6%, #d2b48c 6.5%, #d2b48c 13%, #f5deb3 13.5%, #f5deb3 23%, #d2b48c 23.5%, #d2b48c 30%, #f5deb3 30.5%, #f5deb3 43%, #d2b48c 43.5%, #d2b48c 50%, #f5deb3 50.5%, #f5deb3 60%, #d2b48c 60.5%, #d2b48c 67%, #f5deb3 67.5%, #f5deb3 74%, rgba(245,222,179,0) 74.5%) 0 15%/50% 2em, radial-gradient(ellipse at 0 38%, #f5deb3 60%, #d2b48c 60.5%, #d2b48c 65%, rgba(210,180,140,0) 65.5%) 19% 21%/50% 2em, radial-gradient(ellipse at 0 38%, #f5deb3 60%, #d2b48c 60.5%, #d2b48c 63%, #f5deb3 63.5%, #f5deb3 65%, rgba(245,222,179,0) 65.5%) 33% 21%/50% 2.4em, linear-gradient(#d2b48c, #d2b48c) 0 44%/8% 0.1em, linear-gradient(#d2b48c, #d2b48c) 0 47%/14.5% 0.1em, linear-gradient(#f5deb3, #f5deb3) 0 40%/20% 1em, radial-gradient(ellipse at 100% 50%, #f5deb3 6%, #d2b48c 6.5%, #d2b48c 13%, #f5deb3 13.5%, #f5deb3 23%, #d2b48c 23.5%, #d2b48c 30%, #f5deb3 30.5%, #f5deb3 43%, #d2b48c 43.5%, #d2b48c 50%, #f5deb3 50.5%, #f5deb3 60%, #d2b48c 60.5%, #d2b48c 67%, #f5deb3 67.5%, #f5deb3 70%, rgba(245,222,179,0) 70.5%) 100% 5%/30% 1.4em, radial-gradient(ellipse at 100% 38%, #f5deb3 60%, #d2b48c 60.5%, #d2b48c 67%, #f5deb3 67.5%, #f5deb3 70%, rgba(245,222,179,0) 70.5%) 100% 9%/40% 1.4em, radial-gradient(ellipse at 70% 50%, #f5deb3 6%, #d2b48c 6.5%, #d2b48c 13%, #f5deb3 13.5%, #f5deb3 23%, #d2b48c 23.5%, #d2b48c 30%, #f5deb3 30.5%, #f5deb3 43%, #d2b48c 43.5%, #d2b48c 50%, #f5deb3 50.5%, #f5deb3 60%, #d2b48c 60.5%, #d2b48c 67%, #f5deb3 67.5%, #f5deb3 70%, rgba(245,222,179,0) 70.5%) 120% 75%/70% 2em, radial-gradient(ellipse at 20% 50%, #f5deb3 6%, #d2b48c 6.5%, #d2b48c 13%, #f5deb3 13.5%, #f5deb3 23%, #d2b48c 23.5%, #d2b48c 30%, #f5deb3 30.5%, #f5deb3 43%, #d2b48c 43.5%, #d2b48c 50%, #f5deb3 50.5%, #f5deb3 60%, #d2b48c 60.5%, #d2b48c 67%, #f5deb3 67.5%, #f5deb3 70%, rgba(245,222,179,0) 70.5%) 0 70%/32% 1.4em, radial-gradient(ellips.........完整代码请登录后点击上方下载按钮下载查看
网友评论0