Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
opacity .3
opacity 1
duration .5
duration 1
duration .7
css
.running { --color: #fff; --duration: .7s; } .running .outer { -webkit-animation: outer var(--duration) linear infinite; animation: outer var(--duration) linear infinite; } .running .outer .body { background: var(--color); height: 15px; width: 8px; border-radius: 4px; -webkit-transform-origin: 4px 11px; transform-origin: 4px 11px; position: relative; -webkit-transform: rotate(32deg); transform: rotate(32deg); -webkit-animation: body var(--duration) linear infinite; animation: body var(--duration) linear infinite; } .running .outer .body:before { content: ''; width: 8px; height: 8px; border-radius: 4px; bottom: 16px; left: 0; position: absolute; background: var(--color); } .running .outer .body .arm, .running .outer .body .arm:before, .running .outer .body .leg, .running .outer .body .leg:before { content: ''; width: var(--w, 11px); height: 4px; top: var(--t, 0); left: var(--l, 2px); border-radius: 2px; -webkit-transform-origin: 2px 2px; transform-origin: 2px 2px; position: absolute; background: var(--c, var(--color)); -webkit-transform: rotate(var(--r, 0deg)); transform: rotate(var(--r, 0deg)); -webkit-animation: var(--name, arm-leg) var(--duration) linear infinite; animation: var(--name, arm-leg) var(--duration) linear infinite; } .running .outer .body .arm:before { --l: 7px; --name: arm-b; } .running .outer .body .arm.front { --r: 24deg; --r-to: 164deg; } .running .outer .body .arm.front:before { --r: -48deg; --r-to: -36deg; } .running .outer .body .arm.behind { --r: 164deg; --r-to: 24deg; } .running .outer .body .arm.behind:before { --r: -36deg; --r-to: -48deg; } .running .outer .body .leg { --w: 12px; --t: 11px; } .running .outer .body .leg:before { --t: 0; --l: 8px; } .running .outer .body .leg.front { --r: 10deg; --r-to: 108deg; } .running .outer .body .leg.front:before { --r: 18deg; --r-to: 76deg; } .running .outer .body .leg.behind { --r: 108deg; --r-to: 10deg; --c: none; } .running .outer .body .leg.behind:before { --c: var(--color); --r: 76deg; --r-to: 18deg; } .running .outer .body .leg.behind:after { content: ''; top: 0; right: 0; height: 4px; width: 6px; -webkit-clip-path: polygon(2px 0, 6px 0, 6px 4px, 0 4px); clip-path: polygon(2px 0, 6px 0, 6px 4px, 0 4px); border-radius: 0 2px 2px 0; position: absolute; background: var(--color); } @-webkit-keyframes outer { 50% { -webkit-transform: translateY(0); transform: translateY(0); } 25%, 75% { -webkit-transform: translateY(4px); transform: translateY(4px); } } @keyframes outer { 50% { -webkit-transform: translateY(0); transform: translateY(0); } 25%, 75% { -webkit-transform: translateY(4px); transform: translateY(4px); } } @-webkit-keyframes body { 50% { -webkit-transform: rotate(16deg); transform: rotate(16deg); } 25%, 75% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } } @keyframes body { 50% { -webkit-transform: rotate(16deg); transform: rotate(16deg); } 25%, 75% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } } @-webkit-keyframes arm-leg { 50% { -webkit-transform: rotate(var(--r-to)); transform: rotate(var(--r-to)); } } @keyframes arm-leg { 50% { -webkit-transform: rotate(var(--r-to)); transform: rotate(var(--r-to)); } } @-webkit-keyframes arm-b { 30%, 70% { -webkit-transform: rotate(var(--r-to)); transform: rotate(var(--r-to)); } } @keyframes arm-b { 30%, 70% { -webkit-transform: rotate(var(--r-to)); transform: rotate(var(--r-to)); } } .buttons { position: absolute; left: 0; right: 0; bottom: 40px; display: flex; flex-wrap: wrap; justify-content: center; } .buttons button { border: 0; background: 0; padding: 8px 16px; margin: 0; font-weight: 500; font-size: 16px; cursor: pointer; outline: none; -webkit-appearance: none; color: var(--c, #8A91B4); transition: color .3s, -webkit-transform .3s; transition: color .3s, transform .3s; transition: color .3s, transform .3s, -webkit-transform .3s; -webkit-transform: scale(var(--s, 1)); transform: scale(var(--s, 1)); } .buttons button:hover { --c: #D1D6EE; } .buttons button:active { --s: .9; } html { box-sizing: border-box; -webkit-font-smoothing: antialiased; } * { box-sizing: inherit; } *:before, *:after { box-sizing: inherit; } body { min-height: 100vh; display: flex; font-family: 'Roboto', Arial; justify-content: center; align-items: center; flex-direction: column; background: #2B3044; } body .running { zoom: 2; margin-top: -32px; }
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号