vue滚动小狗拉长动画
代码语言:html
所属分类:动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Cute+Font&display=swap");
body {
background: #333;
color: #fff;
font-family: "Cute Font", cursive;
}
#app {
padding: 30px;
background: #333;
}
*:before, *:after {
content: "";
position: absolute;
}
.content {
height: 300px;
min-width: 300vw;
overflow-y: hidden;
overflow-x: scroll;
-ms-overflow-style: none;
/* IE, Edge 対応 */
scrollbar-width: none;
/* Firefox 対応 */
}
.content::-webkit-scrollbar {
/* Chrome, Safari 対応 */
display: none;
}
.margin {
position: absolute;
height: 300px;
}
.dog {
position: absolute;
bottom: 50px;
background: #D24D57;
height: 35px;
border-radius: 10px;
}
.dog__face {
position: absolute;
top: -24px;
left: 33px;
width: 40px;
height: 40px;
border-radius: 30px;
background: #D24D57;
}
.dog__face:before, .dog__face:after {
background: #D24D57;
}
.dog__face:before {
top: 21px;
left: 7px;
width: 46px;
height: 16px;
transform: rotate(-18deg);
-webkit-transform: rotate(-18deg);
-moz-transform: rotate(-18deg);
border-radius: 50%;
}
.dog__face:after {
top: 12px;
left: 16px;
width: 38px;
height: 13px;
transform: rotate(6deg);
-webkit-transform: rotate(6deg);
-moz-transform: rotate(6deg);
border-radius: 20px;
}
.dog__eye {
position: absolute;
top: -15px;
left: 35px;
width: 12px;
height: 22px;
background: #D24D57;
border: 1px solid #333;
transform: rotate(0);
-webkit-transform: rotate(0);
-moz-transform: rotate(0);
border-radius: 20px 50%;
z-index: 10;
}
.dog__eye:before {
top: .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0