css布局实现玩具车动画效果代码
代码语言:html
所属分类:动画
代码描述:css布局实现玩具车动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html>
<head>
<style>
html, body {
height: 100%;
}
body {
background: linear-gradient(to right, #56ccf2, #2f80ed);
}
.toy-train {
position: relative;
left: 50%;
top: 50%;
margin-left: -100px;
width: 109px;
transform: scale(1.2);
}
.engine {
float: right;
position: relative;
}
.window {
height: 28px;
width: 30px;
background-color: #194488;
position: relative;
border: 3px solid #000;
}
.window:before, .window:after {
content: "";
position: absolute;
left: 50%;
border: 3px solid #000;
}
.window:before {
height: 7px;
background-color: #F82510;
width: 45px;
margin.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0