Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Loading...
css
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } html { height: 100%; } body { background: #333; position: relative; height: 100%; margin: 0px; } @-webkit-keyframes clockwise { 0% { -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @-moz-keyframes clockwise { 0% { -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @-webkit-keyframes counter-clockwise { 0% { -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -moz-transform: rotate(-360deg); -ms-transform: rotate(-360deg); -webkit-transform: rotate(-360deg); transform: rotate(-360deg); } } @-moz-keyframes counter-clockwise { 0% { -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -moz-transform: rotate(-360deg); -ms-transform: rotate(-360deg); -webkit-transform: rotate(-360deg); transform: rotate(-360deg); } } .container { position: absolute; top: 50%; left: 50%; margin-left: -100px; height: 150px; width: 200px; margin-top: -75px; } .gearbox { background: #111; height: 150px; width: 200px; position: relative; border: none; overflow: hidden; -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; -moz-box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.1); -webkit-box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.1); box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.1); } .gearbox .overlay { -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; -moz-box-shadow: inset 0px 0px 20px black; -webkit-box-shadow: inset 0px 0px 20px black; box-shadow: inset 0px 0px 20px black; -moz-transition: background 0.2s; -o-transition: background 0.2s; -webkit-transition: background 0.2s; transition: background 0.2s; } .gearbox.turn .overlay { background: transparent; } .gear { position: absolute; height: 60px; width: 60px; -moz-box-shadow: 0px -1px 0px 0px #888888, 0px 1px 0px 0px black; -webkit-box-shadow: 0px -1px 0px 0px #888888, 0px 1px 0px 0px black; box-shadow: 0px -1px 0px 0px #888888, 0px 1px 0px 0px black; -moz-border-radius: 30px; -webkit-border-radius: 30px; border-radius: 30px; } .gear.large { height: 120px; width: 120px; -moz-border-radius: 60px; -webkit-border-radius: 60px; border-radius: 60px; } .gear.large:after { height: 96px; width: 96px; -moz-border-radius: 48px; -webkit-border-radius: 48px; border-radius: 48px; margin-left: -48px; margin-top: -48px; } .gear.one { top: 12px; left: 10px; } .gear.two { top: 61px; left: 60px; } .gear.three { top: 110px; left: 10px; } .gear.four { top: 13px; left: 128px; } .gear:after { content: ""; position: absolute; height: 36px; width: 36px; -moz-border-radius: 36px; -webkit-border-radius: 36px; border-radius: 36px; background: #111; top: 50%; left: 50%; margin-left: -18px; margin-top: -18px; z-index: 3; -moz-box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.1), inset 0px 0px 10px rgba(0, 0, 0, 0.1), inset 0px 2px 0px 0px #090909, inset 0px -1px 0px 0px #888888; -webkit-box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.1), inset 0px 0px 10px rgba(0, 0, 0, 0.1), inset 0px 2px 0px 0px #090909, inset 0px -1px 0px 0px #888888; box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.1), inset 0px 0px 10px rgba(0, 0, 0, 0.1), inset 0px 2px 0px 0px #090909, inset 0px -1px 0px 0px #888888; } .gear-inner { position: relative; height: 100%; width: 100%; background: #555; -webkit-animation-iteration-count: infinite; -moz-animation-iteration-count: infinite; -moz-border-radius: 30px; -webkit-border-radius: 30px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.1); } .large .gear-inner { -moz-border-radius: 60px; -webkit-border-radius: 60px; border-radius: 60px; } .gear.one .gear-inner { -webkit-animation: counter-clockwise 3s infinite linear; -moz-animation: counter-clockwise 3s infinite linear; } .gear.two .gear-inner { -webkit-animation: clockwise 3s infinite linear; -moz-animation: clockwise 3s infinite linear; } .gear.three .gear-inner { -webkit-animation: counter-clockwise 3s infinite linear; -moz-animation: counter-clockwise 3s infinite linear; } .gear.four .gear-inner { -webkit-animation: counter-clockwise 6s infinite linear; -moz-animation: counter-clockwise 6s infinite linear; } .gear-inner .bar { background: #555; height: 16px; width: 76px; position: absolute; left: 50%; margin-left: -38px; top: 50%; margin-top: -8px; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; border-left: 1px solid rgba(255, 255, 255, 0.1); border-right: 1px solid rgba(255, 255, 255, 0.1); } .large .gear-inner .bar { margin-left: -68px; width: 136px; } .gear-inner .bar:nth-child(2) { -moz-transform: rotate(60deg); -ms-transform: rotate(60deg); -webkit-transform: rotate(60deg); transform: rotate(60deg); } .gear-inner .bar:nth-child(3) { -moz-transform: rotate(120deg); -ms-transform: rotate(120deg); -webkit-transform: rotate(120deg); transform: rotate(120deg); } .gear-inner .bar:nth-child(4) { -moz-transform: rotate(90deg); -ms-transform: rotate(90deg); -webkit-transform: rotate(90deg); transform: rotate(90deg); } .gear-inner .bar:nth-child(5) { -moz-transform: rotate(30deg); -ms-transform: rotate(30deg); -webkit-transform: rotate(30deg); transform: rotate(30deg); } .gear-inner .bar:nth-child(6) { -moz-transform: rotate(150deg); -ms-transform: rotate(150deg); -webkit-transform: rotate(150deg); transform: rotate(150deg); } h1 { font-family: "Helvetica"; text-align: center; text-transform: uppercase; color: #888; font-size: 19px; padding-top: 10px; text-shadow: 1px 1px 0px #111; }
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号