div+css绘制一个进击的巨人Colossal Titan效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css绘制一个进击的巨人Colossal Titan效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
height: 100vh;
display:grid;
background-color: #fffbf2; /*#fff7e4;*/
overflow:hidden;
}
.head {
--sk:#f5dac7; /*#f7ceb2 #e6c6b7*/
--sb:#ca7a64; /*#cf5341*/
height: min(430px,100vmin);
aspect-ratio: 295/430;
position:relative;
filter:drop-shadow(0 0px 1px black);
margin: auto auto 0;
}
.top {
position: absolute;
overflow: hidden;
width: 78%;
height: 42%;
left: 50%;
top: 3%;
transform: translate(-50%);
--c1: #5f5149;
background:
linear-gradient(var(--c1) 0 0) 50% 70%/1px 15%,
linear-gradient(to bottom left,#0000 40%,var(--c1),#0000 50%) 47% 74%/4% 16%,
linear-gradient(to bottom right,#0000 40%,var(--c1),#0000 50%) 54% 74%/4% 20%,
linear-gradient(to bottom right,#0000 40%,var(--c1),#0000 50%) 59% 74%/8% 11%,
linear-gradient(to bottom left,#0000 40%,var(--c1),#0000 50%) 41% 74%/8% 11%,
linear-gradient(to bottom left,#0000 40%,var(--c1),#0000 50%) 43% 74%/5% 11%,
linear-gradient(to bottom right,#0000 40%,var(--c1),#0000 50%) 57% 74%/5% 11%,
linear-gradient(to bottom left,#0000 40%,var(--c1),#0000 50%) 57% -15%/3% 22%,
linear-gradient(to bottom left,#0000 40%,var(--c1),#0000 50%) 71% -5%/4% 19%,
linear-gradient(to bottom right,#0000 45%,var(--c1),#0000 55%) 82% 65%/3% 7%,
linear-gradient(to bottom right,#0000 45%,var(--c1),#0000 54%) 75% 61%/4% 8%,
linear-gradient(to bottom left,#0000 45%,var(--c1),#0000 54%) 21% 45%/3% 11%,
linear-gradient(to bottom left,#0000 48%,var(--c1),#0000 52%) 26% 69%/8% 22%,
linear-gradient(to bottom right,#0000 41%,var(--c1),#0000 58%) 57% 23%/3% 19%,
linear-gradient(to bottom right,#0000 41%,var(--c1),#0000 58%) 86.5% 23%/2% 15%,
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0