css+div绘制不同风格纺织图案衣服效果代码
代码语言:html
所属分类:布局界面
代码描述:css+div绘制不同风格纺织图案衣服效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
html {
height: 100%;
}
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
}
.model {
display: grid;
width: 25vmin;
height: 70vmin;
margin: 15vmin 5vmin;
filter: drop-shadow(10px 10px 5px #cccccc99);
}
.model.rajesh {
margin-left: 8vmin;
}
.model.sheldon {
margin-right: 8vmin;
}
.model > div {
position: relative;
}
.model:after {
content: "";
position: absolute;
bottom: -8vmin;
font-family: Arial, Helvetica, sans-serif;
font-size: 1vmin;
width: 100%;
text-align: center;
white-space: pre;
text-transform: uppercase;
opacity: 0;
transition: all 0.5s ease 0s;
}
.model:hover:after {
opacity: 1;
font-size: 2.1vmin;
transition: all 0.5s ease 0s;
}
.model.rajesh:after {
content: "Rajesh\A Koothrappali";
text-shadow: 0 0 3px #96834380;
color: #968343;
}
.model.howard:after {
content: "Howard\A Wolowitz";
text-shadow: 0 0 3px #2a85cc80;
color: #2a85cc;
}
.model.leonard:after {
content: "Leonard\A Hofstadter";
text-shadow: 0 0 3px #44af5e80;
color: #44af5e;
}
.model.sheldon:after {
content: "Sheldon\A Cooper";
text-shadow: 0 0 3px #d12b1380;
color: #d12b13;
}
.model.rajesh:before {
content: "";.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0