Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
css
body { background: #ffbe00; display: grid; grid-template-columns: auto auto auto; margin: 0; height: 100vh; } .mouth, .beard:after, .beard:before, .beard, .nose:after, .nose, .eye:after, .face, .head:after { position: absolute; left: 50%; transform: translateX(-50%); } .head { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #ce7253; width: 220px; height: 310px; border-radius: 115px; box-shadow: 0 -40px inset #673929, 0 62px inset #90503a; z-index: 100; } .head:before { content: ""; position: absolute; width: 100%; height: 220px; background: #ce7253; left: 0; top: 50px; border-radius: 60px 63px 60% 60%; transition: 0.3s ease-in; z-index: 5; } .head:after { content: ""; width: 140px; height: 25px; background: #ff9c00; border-radius: 50%; bottom: -70px; } .ear { position: absolute; left: -28px; top: 127px; background: #ce7253; width: 55px; height: 55px; border-radius: 50%; transition: 0.3s ease-in; } .ear:before { content: ""; position: absolute; background: #a04e3a; width: 25px; height: 25px; border-radius: 50%; top: 13px; left: 17px; } .ear:after { content: ""; position: absolute; background: #fff; width: 9px; height: 9px; border-radius: 50%; bottom: 4px; left: 16px; } .ear + .ear { left: auto; right: -28px; } .ear + .ear:after { left: auto; right: 16px; } .face { position: absolute; width: 110px; height: 165px; top: 105px; transition: 0.3s ease-in; z-index: 5; } .eye { position: absolute; top: 4px; left: 0px; width: 38px; height: 8px; background: #000; border-radius: 10px; } .eye:after { content: ""; background: #000; width: 16px; height: 16px; border-radius: 50%; top: 18px; transition: 0.3s ease-in; } .eye + .eye { left: auto; right: 4px; } .nose { position: absolute; top: 50px; width: 65px; height: 22px; background: #a04e3a; border-radius: 10px; } .nose:after { content: ""; background: #a04e3a; width: 24px; height: 24px; border-radius: 50%; top: -6px; } .beard { width: 86px; height: 120px; bottom: -35px; background: #000 radial-gradient(circle 13px at 50% 0, #ce7253 90%, #000 0) no-repeat; transition: 0.3s ease-in; border-radius: 50px; } .beard:before { content: ""; background: #ce7253; height: 64px; width: 74px; border-radius: 35px; top: 20px; } .beard:after { content: ""; background: #000; width: 25px; height: 10px; border-radius: 10px; top: 52px; } .mouth { background: #fff; z-index: 5; width: 40px; height: 18px; border-radius: 0 0 20px 20px; top: 28px; } .move { flex: 1; } .move.top:hover ~ .head:before { top: 47px; } .move.top:hover ~ .head .ear { top: 132px; } .move.top:hover ~ .head .face { top: 90px; } .move.top:hover ~ .head .face .eye:after { top: 8px; } .move.top:hover ~ .head .beard { bottom: -30px; } .move.bottom:hover ~ .head:before { top: 60px; } .move.bottom:hover ~ .head .ear { top: 120px; } .move.bottom:hover ~ .head .face { top: 115px; } .move.bottom:hover ~ .head .face .eye:after { top: 28px; } .move.bottom:hover ~ .head .beard { bottom: -40px; } .move.left:hover ~ .head .ear { left: -23px; } .move.left:hover ~ .head .ear + .ear { left: auto; right: -33px; } .move.left:hover ~ .head .face { left: 45%; } .move.left:hover ~ .head .face .eye:after { left: 40%; } .move.left:hover ~ .head .face .eye + .eye:after { left: 45%; } .move.right:hover ~ .head .ear { left: -33px; } .move.right:hover ~ .head .ear + .ear { left: auto; right: -23px; } .move.right:hover ~ .head .face { left: 55%; } .move.right:hover ~ .head .face .eye:after { left: 55%; } .move.right:hover ~ .head .face .eye + .eye:after { left: 60%; }
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号