Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
css
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-top: -13px; margin-left: -26px; border-radius: 8px; } .window:after { margin-left: -8px; margin-top: 3px; border-radius: 50%; height: 11px; width: 11px; background-color: #fff; } .engine-main { height: 10px; width: 35px; border: 3px solid #000; background-color: #3D9A01; position: absolute; border-radius: 0 8px 8px 0; right: -41px; bottom: -3px; } .engine-main:before { content: ""; height: 10px; width: 8px; background-color: #000; position: absolute; top: -11px; left: 4px; transform: rotate(180deg); border-radius: 50% 50% 50% 50%/90% 90% 40% 40%; } .engine-main:after { content: ""; height: 12px; width: 8px; position: absolute; display: block; right: 5px; top: -18px; border-radius: 50% 50% 50% 50%/90% 90% 40% 40%; transform: rotate(180deg); z-index: -1; background-color: #194488; border: 3px solid #000; } .engine-body { height: 17px; width: 75px; position: absolute; left: -2px; top: 30px; background-color: #F69F00; border: 3px solid #000; border-radius: 5px; } .engine-body .big-wheel { top: 3px; left: 2px; } .engine-body .normal-wheel { left: 45px; top: 5px; } .engine-body:before { content: ""; position: absolute; height: 5px; width: 5px; left: -11px; bottom: 2px; z-index: -1; background-color: #fff; border-radius: 50%; border: 3px solid #000; } .wheels > div { position: absolute; background-color: #F82510; border-radius: 50%; border: 3px solid #000; animation: wheel-rotate 1s linear infinite; } .wheels > div:before { content: ""; position: absolute; width: 100%; border-bottom: 1px solid #000; top: 50%; margin-top: -1px; } .wheels > div:after { content: ""; height: 8px; width: 8px; position: absolute; background-color: #000; border-radius: 50%; left: 50%; top: 50%; margin-left: -4px; margin-top: -4px; } .wheels .big-wheel { width: 22px; height: 22px; animation-delay: -0.3s; } .wheels .normal-wheel { height: 20px; width: 20px; animation-delay: -0.6s; } .locomotive { height: 35px; width: 60px; border: 3px solid #000; background-color: #F69F00; border-radius: 5px; position: relative; float: left; margin-top: 13px; } .locomotive:before { content: ""; width: 100%; background: linear-gradient(to right, #000000 0%, #000000 8%, #f69f00 8%, #f69f00 15%, #000000 15%, #000000 28%, #000000 34%, #f69f00 34%, #f69f00 65%, #000000 65%, #000000 65%, #000000 100%); height: 3px; position: absolute; top: 6px; left: 0; } .locomotive:after { content: ""; width: 100%; background: linear-gradient(to right, #000000 0%, #000000 24%, #f69f00 24%, #f69f00 65%, #f69f00 65%, #000000 65%, #000000 85%, #f69f00 85%, #f69f00 90%, #000000 90%, #000000 100%); height: 3px; position: absolute; top: 14px; left: 0; } .locomotive .wheels > div { top: 22px; animation-delay: -0.6s; } .locomotive .wheels > div:first-child { animation-delay: -0.9s; } .locomotive .normal-wheel:first-of-type { left: 2px; } .locomotive .normal-wheel:last-of-type { right: 2px; } .locomotive .trash { height: 35px; width: 50px; position: absolute; top: -18px; border: 3px solid #000; background-color: #3D9A01; border-radius: 50%; left: 2px; z-index: -1; } .tracks { position: relative; width: 200px; bottom: -10px; overflow: hidden; height: 3px; } .tracks span { display: inline-block; height: 3px; width: 200px; position: absolute; left: 200px; background: linear-gradient(to right, black 0%, black 30%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 39%, black 39%, black 61%, black 65%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0) 70%, black 71%, black 100%); animation: track 2s linear infinite; animation-fill-mode: forwards; } .tracks span:nth-child(2) { animation-delay: -1s; } .smokes:before, .smokes:after, .smokes span:before { display: block; content: ""; height: 8px; width: 8px; background-color: #fff; border-radius: 50%; position: absolute; right: 8px; top: 15px; z-index: -1; } .smokes:before { animation: smoke 1s linear infinite; } .smokes span:before { animation: smoke 1s linear infinite; animation-delay: -0.6s; } .smokes:after { animation: smoke 1s linear infinite; animation-delay: -0.3s; } @keyframes smoke { 100% { top: -50px; opacity: 0.5; } } @keyframes wheel-rotate { 100% { transform: rotate(360deg); } } @keyframes track { 100% { left: -200px; } }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS玩具列车-jq22.com</title> <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script> <style>
</style> </head> <body>
<script>
</script>
</body> </html>
2012-2021 jQuery插件库版权所有
jquery插件
|
jq22工具库
|
网页技术
|
广告合作
|
在线反馈
|
版权声明
沪ICP备13043785号-1
浙公网安备 33041102000314号