纯css实现划船效果
代码语言:html
所属分类:布局界面
代码描述:纯css实现划船效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
height: 100%;
}
body {
background-color: #3e9d8c;
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
transform: rotateZ(20deg);
}
.boat {
height: 450px;
width: 200px;
background-color: #f88e34;
border-top-left-radius: 70% 100%;
border-top-right-radius: 70% 100%;
border-bottom-left-radius: 10% 30%;
border-bottom-right-radius: 10% 30%;
box-shadow: 30px 30px 10px black;
position: relative;
display: flex;
align-items: center;
justify-content: center;
box-shadow: inset 10px 0 #f8c299, inset -10px 0 #f8c299,
30px 30px 10px #235e51;
}
.boat::before {
content: "&quo.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0