Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
幸福
css
@import url("https://fonts.googleapis.com/css?family=Ma Shan Zheng"); body { background-color: darkslategrey; } .wrapper { display: flex; width: 100%; height: 100%; margin-top: 20px; flex-direction: column; justify-content: center; align-items: center; } .container { position: relative; width: 340px; display: flex; justify-content: space-between; flex-direction: column; /* transform: scale(0.5); */ } .ears { display: flex; width: 100%; justify-content: space-between; } .ear-left-out { height: 110px; width: 110px; border: solid 8px black; background-color: white; border-radius: 26% 74% 72% 28% / 28% 38% 62% 72%; position: relative; transform: rotate(3deg); } .ear-left-inner { height: 60px; position: absolute; top: 30px; left: 30px; width: 60px; background-color: #DF4A63; border-radius: 26% 74% 72% 28% / 28% 38% 62% 72%; border: solid 8px black; } .ear-right-out { height: 110px; width: 110px; border: solid 8px black; background-color: white; border-radius: 26% 74% 72% 28% / 28% 38% 62% 72%; position: relative; transform: rotate(84deg); } .ear-right-inner { height: 60px; position: absolute; top: 30px; right: 30px; width: 60px; background-color: #DF4A63; border-radius: 26% 74% 72% 28% / 28% 38% 62% 72%; transform: rotate(88deg); border: solid 8px black; } .head { height: 250px; width: 300px; top: 10px; left: 10px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40% ; border: solid 8px black; background-color: white; position: absolute; z-index: 2; } .eyes { display: flex; justify-content: space-around; padding-top: 85px; height: 35px; } .eye-left::after { content: ' '; position: absolute; height: 12px; display: inline-block; width: 12px; left: 1px; top: 0px; background-color: black; border-radius: 61%; } .eye-left::before { content: ' '; position: absolute; height: 12px; display: inline-block; width: 12px; right: 1px; top: 0px; background-color: black; border-radius: 61%; } .eye-left { z-index: 1; width: 74px; height: 74px; border: 12px solid; border-color: black transparent transparent transparent; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; -webkit-transform: rotate(30deg); -moz-transform: rotate(30deg); transform: rotate(3deg); } .eye-right::after { content: ' '; position: absolute; height: 12px; display: inline-block; width: 12px; left: 1px; top: 0px; background-color: black; border-radius: 61%; } .eye-right::before { content: ' '; position: absolute; height: 12px; display: inline-block; width: 12px; right: 1px; top: 0px; background-color: black; border-radius: 61%; } .eye-right { z-index: 1; width: 74px; height: 74px; border: 12px solid; border-color: black transparent transparent transparent; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; -webkit-transform: rotate(30deg); -moz-transform: rotate(30deg); transform: rotate(-3deg); } .face-center { display: flex; width: 100%; } .face-wrapper { /* position: relative; */ } .mustache-left { background-color: black; width: 50px; height: 8px; border-radius: 7% 93% 93% 7% / 47% 53% 47% 53%; position: absolute; top: 140px; left: 14px; } .mustache-right-bottom { background-color: black; width: 50px; height: 8px; border-radius: 93% 7% 7% 93% / 53% 47% 53% 47%; position: absolute; top: 155px; left: 240px; transform: rotate(8deg); } .mustache-right { background-color: black; width: 50px; height: 8px; border-radius:93% 7% 7% 93% / 53% 47% 53% 47%; position: absolute; top: 140px; left: 240px; } .mustache-left-bottom { background-color: black; width: 50px; height: 8px; border-radius: 7% 93% 93% 7% / 47% 53% 47% 53%; position: absolute; top: 155px; left: 14px; transform: rotate(-8deg); } .nose { position: absolute; top: 130px; left: 135px; height: 20px; width: 35px; background-color: black; border-radius: 46% 54% 49% 51% / 66% 65% 35% 34%; } .mouth { position: absolute; z-index: 1; top: 110px; left: 80px; width: 60px; height: 60px; border: 8px solid; border-color: transparent black black transparent; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; -webkit-transform: rotate(30deg); -moz-transform: rotate(30deg); transform: rotate(45deg); } .mouth-right { position: absolute; z-index: 1; top: 110px; left: 147px; width: 60px; height: 60px; border: 8px solid; border-color: transparent black black transparent; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; -webkit-transform: rotate(30deg); -moz-transform: rotate(30deg); transform: rotate(45deg); } .necklace { height: 95px; background-color: #DF4A63; margin-top: 70px; border-radius: 50% 50% 50% 50% / 0% 0% 100% 100%; width: 250px; align-self: center; border: solid 8px black; position: relative; z-index: 1; } .bell { background-color: #F9D552; border-radius: 50%; position: absolute; top: 82px; left: 90px; height: 50px; width: 50px; border: solid 8px black; } .reflect { height: 13px; width: 20px; background-color: white; border-radius: 50%; position: absolute; top: 5px; right: 9px; transform: rotate(25deg); } .bell:before { content: ''; height: 16px; width: 16px; border-radius: 50%; background-color: black; position: absolute; bottom: 3px; left: 18px; } .bell:after { content: ''; height: 15px; width: 8px; background-color: black; position: absolute; bottom: 0px; left: 22px; } .arm-top-left-wrapper { z-index: 0; } .arm-top-left { position: absolute; display: flex; top: 200px; width: 220px; left: 6px; height: 240px; background: #fff; border: 8px solid black; transform: rotate(50deg); border-radius: 50%; border-color: transparent transparent black black; } .arm-top-left-tip:after { content: ''; position: absolute; height: 67px; width: 49px; background: white; border-radius: 50%; bottom: -21px; left: 17px; transform: rotate(17deg); } .arm-top-left-tip { left: 70px; bottom: 132px; position: absolute; display: flex; z-index: 1; background: white; width: 68px; height: 60px; border: 8px solid black; transform: rotate(92deg); border-radius: 50%; border-color: black black transparent black; } @keyframes arm-right { 0% { transform: rotate(35deg); transform-origin: center; } 50% { transform-origin: left; transform: rotate(35deg) translateY(-10px) translateX(-10px) scaleY(0.8); } 100% { transform-origin: center; transform: rotate(35deg); } } .arm-top-right { position: absolute; display: flex; z-index: -1; top: 132px; width: 106px; right: -26px; height: 200px; background: #fff; border: 8px solid black; transform: rotate(35deg); border-radius: 50%; border-color: transparent black transparent transparent; animation: arm-right 1.5s both infinite; } @keyframes arm-tip-right { 0% { top: 128px; } 50% { top: 175px; } 100% { top: 128px; } } .arm-top-right-tip { position: absolute; display: flex; z-index: 0; /* transform: rotate(-15deg); */ /* top: 128px; */ top: 175px; right: -66px; width: 85px; background: white; height: 60px; border: 8px solid black; border-radius: 50%; border-color: black black black transparent; animation: arm-tip-right 1.5s both infinite; } .back-legs { width: 100%; height: 200px; position: relative; display: flex; justify-content: space-between; } .back-leg-left { width: 120px; height: 180px; z-index: -2; border-radius: 53% 47% 50% 50% / 59% 61% 39% 41%; background-color: white; position: relative; padding-top: 30px; border: solid 8px black; border-color: transparent transparent transparent black; transform: rotate(10deg); } .back-leg-right { width: 120px; height: 180px; z-index: -2; border-radius: 47% 53% 50% 50% / 61% 59% 41% 39%; background-color: white; position: relative; padding-top: 30px; border: solid 8px black; border-color: black black transparent transparent; transform: rotate(-10deg); } .paws { position: relative; width: 100%; height: 100px; margin-top: -28px; display: flex; justify-content: space-between; } .paw-left { height: 60px; width: 100px; margin-right: 4px; border-radius: 47% 53% 50% 50% / 60% 60% 40% 40% ; border: solid 8px black; background-color: white; } .paw-right { height: 60px; width: 100px; margin-left: 4px; border-radius: 47% 53% 50% 50% / 60% 60% 40% 40%; border: solid 8px black; background-color: white; } .gold { height: 217px; width: 136px; background: #F9D552; border: solid 8px black; left: 115px; bottom: 8px; border-radius: 61px; position: absolute; transform: rotate(45deg); } .gold:after { content: ''; height: 50px; width: 22px; border-radius: 50%; background: white; position: absolute; transform: rotate(45deg); top: 4px; left: 17px; } .carving { position: absolute; display: inline-block; font-family: 'Ma Shan Zheng', cursive; z-index: 1; top: 26px; left: 26px; width: 50px; font-size: 85px; font-weight: 600; line-height: 80px; color: black; } @keyframes test { 50% { top: } 100% {} }
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号