Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
❤
css
body { margin: 0; padding: 0; } .wrapper { display: flex; align-items: center; justify-content: center; background: #F9D3C0; height: 100vh; } .wrapper__content { width: 600px; height: 600px; position: relative; } .cup-body { position: absolute; width: 241px; height: 324px; border-radius: 18px; background: #4D343F; left: 205px; top: 179px; } .cup-body:before { content: ''; position: absolute; width: 175px; height: 308px; background: inherit; left: -19px; top: 0; background: inherit; -webkit-transform: skew(7deg, 0deg); transform: skew(7deg, 0deg); } .cup-body:after { content: ''; position: absolute; width: 175px; height: 308px; background: inherit; right: -19px; top: 0; background: inherit; -webkit-transform: skew(-7deg, 0deg); transform: skew(-7deg, 0deg); } .cup-body-shadow { position: absolute; top: 215px; left: 176px; width: 248px; height: 38px; border-radius: 0 45px 45px 0; background: #5B4049; } .cup-body-shadow:after { content: ''; position: absolute; width: 50px; height: 38px; background: inherit; left: -2px; top: 0; background: inherit; -webkit-transform: skew(7deg, 0deg); transform: skew(7deg, 0deg); } .cup-body-shadow-bottom { position: absolute; top: 457px; left: 211px; width: 184px; height: 46px; border-radius: 0 45px 45px 27px; background: #5B4049; } .cup-body-shadow-bottom:after { content: ''; position: absolute; width: 50px; height: 46px; left: -7px; top: 0; background: inherit; -webkit-transform: skew(7deg, 0deg); transform: skew(7deg, 0deg); border-radius: 0 0 0 20px; } .cup-label { background: #84505B; position: absolute; width: 264px; height: 192px; border-radius: 10px; left: 193px; top: 251px; } .cup-label:before { content: ''; position: absolute; width: 175px; height: 191px; left: -10px; top: 0; background: inherit; -webkit-transform: skew(7deg, 0deg); transform: skew(7deg, 0deg); border-radius: 11px; } .cup-label:after { content: ''; position: absolute; width: 175px; height: 191px; right: -10px; top: 0; background: inherit; -webkit-transform: skew(-7deg, 0deg); transform: skew(-7deg, 0deg); border-radius: 11px; } .cup-label-red { background: #CE605A; position: absolute; width: 264px; height: 145px; left: 193px; top: 274px; } .cup-label-red:before { content: ''; position: absolute; width: 175px; height: 148px; left: -10px; top: 0; background: inherit; -webkit-transform: skew(7deg, 0deg); transform: skew(7deg, 0deg); } .cup-label-red:after { content: ''; position: absolute; width: 175px; height: 148px; right: -10px; top: 0; background: inherit; -webkit-transform: skew(-7deg, 0deg); transform: skew(-7deg, 0deg); } .cup-label-red-shadow { position: absolute; top: 27px; left: -2px; width: 230px; height: 120px; border-radius: 0 111px 183px 33px; z-index: 1; -webkit-transform: skew(0deg, -1deg); transform: skew(0deg, -1deg); background: #DD6C65; } .cup-label-red-shadow:after { content: ''; position: absolute; width: 50px; height: 120px; left: -6px; top: 0; background: inherit; -webkit-transform: skew(7deg, 0deg); transform: skew(7deg, 0deg); border-radius: 0 0 0; } .cup-upper{ background: #784451; position: absolute; top: 108px; left: 388px; height: 25px; width: 52px; border-radius: 7px 10px 0 0; } .cup-upper:before { content: ''; border-bottom: 22px solid #784451; border-right: 9px solid transparent; position: absolute; right: -7px; top: 3px; } .cup-upper:after { content: ''; border-bottom: 25px solid #84505B; border-left: 51px solid transparent; position: absolute; left: -47px; top: 0px; } .cup-upper-shadow { position: absolute; top: 1px; left: -14px; width: 35px; height: 23px; border-radius: 100%; -webkit-transform: skew(0deg, -15deg) rotate(2deg); transform: skew(0deg, -15deg) rotate(2deg); background: #84505B; } .cup-middle{ background: #955C6B; position: absolute; top: 133px; left: 187px; height: 27px; width: 279px; border-radius: 12px 12px 0 0; } .cup-middle:after { content: ''; position: absolute; left: 0; width: 186px; height: 16px; background: #9C6471; bottom: 0; border-radius: 0 20px 20px 0; } .cup-bottom{ background: #784451; position: absolute; top: 160px; left: 166px; height: 41px; width: 324px; border-radius: 12px; } .cup-bottom:before { content: ''; position: absolute; left: -4px; width: 40px; height: 41px; background: inherit; bottom: 0; border-radius: 12px; -webkit-transform: skew(-20deg, 0deg); transform: skew(-20deg, 0deg); } .cup-bottom:after{ content: ''; position: absolute; right: -4px; width: 40px; height: 41px; background: inherit; bottom: 0; border-radius: 12px; -webkit-transform: skew(20deg, 0deg); transform: skew(20deg, 0deg); } .cup-bottom-shadow { position: absolute; bottom: 0; left: 1px; width: 231px; height: 29px; border-radius: 0 19px 19px 0; background: #84505B; z-index: 1; } .cup-bottom-shadow:after { content: ''; position: absolute; left: -7px; width: 40px; height: 29px; background: #84505B; bottom: 0; border-radius: 0 0 0 12px; -webkit-transform: skew(-24deg, 0deg); transform: skew(-24deg, 0deg); z-index: 1; } .floor { position: absolute; top: 500px; left: 114px; width: 391px; height: 6px; } .floor:before, .floor:after { content: ''; top: 0; bottom:0; border-radius: 6px; background: #4D343F; position: absolute; } .floor:before { width: 33px; left: 0; } .floor:after { width: 350px; right:0; } .face{ position: absolute; left: 241px; top: 300px; width: 172px; height: 96px; } .face-eyes { position: absolute; width: 13px; height: 13px; border-radius: 100%; background: #5D4048; position: absolute; z-index: 1; left: 41px; top: 32px; -webkit-animation: eyes 5s infinite; animation: eyes 5s infinite; } .face-eyes:before { content: ''; width: 13px; height: 13px; border-radius: 100%; background: #5D4048; position: absolute; z-index: 1; left: 81px; top: 0px; } .face-mouth { width: 8px; height: 9px; border-radius: 100%; border: 3px solid #5D4048; position: absolute; z-index: 1; left: 75px; top: 48px; -webkit-animation: mouth 5s infinite; animation: mouth 5s infinite; } .face-mouth:after { content: ''; position: absolute; left: -4px; width: 27px; height: 9px; background: #DD6C65; z-index: 1; top: -6px; } .face-mouth:before { width: 8px; height: 9px; border-radius: 100%; border: 3px solid #5D4048; position: absolute; z-index: 1; left: 8px; top: -3px; content: ''; } .face-blush { position: absolute; width: 48px; height: 19px; background: radial-gradient( #ff7ec6 0% , transparent 50%); left: 10px; top: 36px; border-radius: 100%; z-index: 2; -webkit-animation: blush 5s infinite; animation: blush 5s infinite; } .face-blush:after { content: ''; position: absolute; width: 48px; height: 19px; background: inherit; left: 104px; top: 0; border-radius: 100%; z-index: 2; } .like { position: absolute; background: #DC6D64; width: 161px; height: 55px; border-radius: 9px; left: 243px; top: 18px; color: #F3D4BF; display: flex; justify-content: center; align-items: center; font-size: 41px; -webkit-animation: heart 3.5s infinite; animation: heart 3.5s infinite; } .like:before { content: ''; position: absolute; height: 50px; left: 63px; top: 50px; border-left: 17px solid transparent; border-right: 17px solid transparent; border-top: 20px solid #DC6D64; } @-webkit-keyframes eyes { 0%, 80% { -webkit-transform: translate(0px, 0px) scale(1, 1); transform: translate(0px, 0px) scale(1, 1); } 24%, 60% { -webkit-transform: translate(-3px, -11px) scale(1.05, 0.5); transform: translate(-3px, -11px) scale(1.05, 0.5); } } @keyframes eyes { 0%, 80% { -webkit-transform: translate(0px, 0px) scale(1, 1); transform: translate(0px, 0px) scale(1, 1); } 24%, 60% { -webkit-transform: translate(-3px, -11px) scale(1.05, 0.5); transform: translate(-3px, -11px) scale(1.05, 0.5); } } @-webkit-keyframes mouth { 0%,80% { -webkit-transform: translate(0px, 0px) scale(1, 1); transform: translate(0px, 0px) scale(1, 1); } 15%, 55% { -webkit-transform: translate(-1px, -15px) scale(1.1, 0.9); transform: translate(-1px, -15px) scale(1.1, 0.9); } } @keyframes mouth { 0%,80% { -webkit-transform: translate(0px, 0px) scale(1, 1); transform: translate(0px, 0px) scale(1, 1); } 15%, 55% { -webkit-transform: translate(-1px, -15px) scale(1.1, 0.9); transform: translate(-1px, -15px) scale(1.1, 0.9); } } @-webkit-keyframes blush { 0%, 20%, 75%, 100% { opacity: 0; } 50% { opacity: 0.4; } } @keyframes blush { 0%, 20%, 75%, 100% { opacity: 0; } 50% { opacity: 0.4; } } @-webkit-keyframes heart { 0%, 13%, 23%, 100% { font-size: 41px; } 1% { font-size: 50px; } 17% { font-size: 55px; } } @keyframes heart { 0%, 13%, 23%, 100% { font-size: 41px; } 1% { font-size: 50px; } 17% { font-size: 55px; } }
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号