css布局热气腾腾的咖啡杯效果代码
代码语言:html
所属分类:动画
代码描述:使用css代码来布局一杯热气腾腾的咖啡效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
* {
margin: auto;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
body {
background: crimson;
}
.cup {
top: 130px;
}
.top {
width: 100px;
height: 150px;
top: -400px;
}
.one {
width: 150px;
height: 20px;
background-color: deeppink;
border: 7px solid #5E3F32;
border-radius: 10px;
top: 150px;
left: -33px;
}
.two {
width: 200px;
height: 23px;
background-color: deeppink;
border: 7px solid #5E3F32;
border-radius: 10px;
top: 200px;
left: -60px;
z-index: 1;
}
.main {
width: 150px;
height: 200px;
background-color: #A38C6B;
border: 7px solid #5E3F32;
border-radius: 10px;
top: 40px;
transform: perspective(500px) rotateX(-20deg);
}
.bottom {
width: 160px;
height: 30px;
backgro.........完整代码请登录后点击上方下载按钮下载查看
网友评论0