Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
STEPS
THIS WEEK
20,000
10,000
15,000
24,000
7,000
7,000
10,000
93,000
Click to toggle details view
css
@import url("https://fonts.googleapis.com/css?family=Asar|Oxygen"); html, body { width: 100%; height: 100%; margin: 0; padding: 0; background-color: white; -webkit-perspective: 1500; perspective: 1500; font-family: 'Asar', serif; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .card { background-color: black; width: 250px; height: 300px; border-radius: 10px; -webkit-perspective: 1500; perspective: 1500; -webkit-transition: box-shadow 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out; transition: box-shadow 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out; transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out; transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; box-shadow: 5px 5px 24px 0px rgba(0, 0, 0, 0.2); } @media (min-height: 600px) { .card { width: 400px; height: 550px; } } .card h2, .card h3, .card P { -webkit-transform: translateZ(2px); transform: translateZ(2px); color: white; font-size: 30px; line-height: 30px; margin: 0; font-weight: 300; padding: 0; -webkit-transition: opacity 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out; transition: opacity 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out; transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out; transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out; } @media (min-height: 600px) { .card h2, .card h3, .card P { font-size: 40px; line-height: 40px; } } .card h2 { margin: 20px 0 0 0; } .card h3 { margin: 10px 0 40px 0; } @media (min-height: 600px) { .card h3 { margin: 20px 0 40px 0; } } .card P { margin: 0px 0 30px 0; font-size: 16px; } @media (min-height: 600px) { .card P { margin: 0px 0 40px 0; font-size: 21px; } } .card .chart { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-transform: translateZ(2px); transform: translateZ(2px); -webkit-transition: -webkit-transform 0.5s ease-in-out; transition: -webkit-transform 0.5s ease-in-out; transition: transform 0.5s ease-in-out; transition: transform 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out; } .card .photo { position: absolute; -webkit-transform: translateZ(1px); transform: translateZ(1px); top: 0; left: 0; right: 0; bottom: 0; background: url("https://source.unsplash.com/kpAXYoXSeuY/600x600") no-repeat center center; background-size: cover; border-radius: 10px; -webkit-transition: -webkit-transform 0.5s ease-in-out; transition: -webkit-transform 0.5s ease-in-out; transition: transform 0.5s ease-in-out; transition: transform 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out; overflow: hidden; } .card .photo:after { position: absolute; content: ' '; display: block; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0, 0, 0, 0.2); -webkit-transition: background-color 0.5s ease-in-out; transition: background-color 0.5s ease-in-out; } .card .bar { will-change: height; width: 15px; height: 1px; background-color: white; -webkit-transform: translateX(-7.5px) rotateX(-90deg) rotateY(-45deg); transform: translateX(-7.5px) rotateX(-90deg) rotateY(-45deg); -webkit-transform-origin: 100% 100%; transform-origin: 100% 100%; -webkit-transition: height 0.5s ease-in-out, margin 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out; transition: height 0.5s ease-in-out, margin 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out; transition: height 0.5s ease-in-out, margin 0.5s ease-in-out, transform 0.5s ease-in-out; transition: height 0.5s ease-in-out, margin 0.5s ease-in-out, transform 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; margin: 6px; position: relative; background: -webkit-linear-gradient(top, #feffff 0%, #ddf1f9 0%, #a0d8ef 100%); background: linear-gradient(to bottom, #feffff 0%, #ddf1f9 0%, #a0d8ef 100%); } @media (min-height: 600px) { .card .bar { margin: 10px; width: 25px; -webkit-transform: translateX(-12.5px) rotateX(-90deg) rotateY(-45deg); transform: translateX(-12.5px) rotateX(-90deg) rotateY(-45deg); } } .card .bar:after { display: block; content: ''; height: 100%; width: 15px; position: absolute; top: 0; right: -15px; background-color: grey; -webkit-transform: rotateY(90deg); transform: rotateY(90deg); -webkit-transform-origin: 0% 50%; transform-origin: 0% 50%; background: -webkit-linear-gradient(top, #feffff 0%, #85d7f7 0%, #4c8596 100%); background: linear-gradient(to bottom, #feffff 0%, #85d7f7 0%, #4c8596 100%); } @media (min-height: 600px) { .card .bar:after { width: 25px; right: -25px; } } .card .bar:before { font-family: 'Oxygen', sans-serif; display: block; content: ''; height: 15px; width: 15px; position: absolute; top: -15px; left: 0; background-color: white; -webkit-transform: rotateX(90deg); transform: rotateX(90deg); -webkit-transform-origin: 0% 100%; transform-origin: 0% 100%; color: white; text-align: center; font-size: 10px; line-height: 14px; padding: 0; -webkit-transition: color 0.3s ease-in-out; transition: color 0.3s ease-in-out; } @media (min-height: 600px) { .card .bar:before { width: 25px; height: 25px; top: -25px; font-size: 12px; line-height: 18px; } } .card .bar.bar1:before { content: "M"; } .card .bar.bar2:before { content: "T"; } .card .bar.bar3:before { content: "W"; } .card .bar.bar4:before { content: "T"; } .card .bar.bar5:before { content: "F"; } .card .bar.bar6:before { content: "S"; } .card .bar.bar7:before { content: "S"; } .card .bar span { font-family: 'Oxygen', sans-serif; position: absolute; -webkit-transform: rotateZ(-90deg); transform: rotateZ(-90deg); border-radius: 2px; -webkit-transform-origin: 0% 100%; transform-origin: 0% 100%; top: 20px; white-space: nowrap; text-align: right; left: 18px; padding: 5px; color: black; font-size: 10px; opacity: 0; -webkit-transition: opacity 0.5s ease-in-out; transition: opacity 0.5s ease-in-out; } @media (min-height: 600px) { .card .bar span { top: 25px; left: 25px; font-size: 13px; } } .details .card { -webkit-transform: rotateX(60deg) translateY(150px); transform: rotateX(60deg) translateY(150px); box-shadow: 0px 30px 40px 0px rgba(0, 0, 0, 0.75); } .details .card .chart { -webkit-transform: translateZ(40px) translatey(50px); transform: translateZ(40px) translatey(50px); } .details .card .bar { -webkit-transform: translateX(-7.5px) rotateX(-90deg) rotateY(-25deg); transform: translateX(-7.5px) rotateX(-90deg) rotateY(-25deg); } @media (min-height: 600px) { .details .card .bar { -webkit-transform: translateX(-12.5px) rotateX(-90deg) rotateY(-25deg); transform: translateX(-12.5px) rotateX(-90deg) rotateY(-25deg); } } .details .card .bar.bar1 { height: 150px; -webkit-transition-delay: 0.3s; transition-delay: 0.3s; margin-top: -150px; } .details .card .bar.bar2 { height: 75px; -webkit-transition-delay: 0.2s; transition-delay: 0.2s; margin-top: -75px; } .details .card .bar.bar3 { height: 112.5px; -webkit-transition-delay: 0.1s; transition-delay: 0.1s; margin-top: -112.5px; } .details .card .bar.bar4 { height: 180px; -webkit-transition-delay: 0s; transition-delay: 0s; margin-top: -180px; } .details .card .bar.bar5 { height: 52.5px; -webkit-transition-delay: 0.1s; transition-delay: 0.1s; margin-top: -52.5px; } .details .card .bar.bar6 { height: 52.5px; -webkit-transition-delay: 0.2s; transition-delay: 0.2s; margin-top: -52.5px; } .details .card .bar.bar7 { height: 75px; -webkit-transition-delay: 0.3s; transition-delay: 0.3s; margin-top: -75px; } .details .card .bar span { opacity: 1; -webkit-transition-delay: 0.3s; transition-delay: 0.3s; } .details .card .bar:before { color: black; } .details .card .photo { -webkit-transform: translateZ(20px); transform: translateZ(20px); } .details .card .photo:after { background-color: rgba(0, 50, 100, 0.8); } .details .card h2 { opacity: 0; -webkit-transform: translateZ(40px) translateY(-100px); transform: translateZ(40px) translateY(-100px); } .details .card p { opacity: 0; -webkit-transform: translateZ(40px) translateY(-80px); transform: translateZ(40px) translateY(-80px); } .details .card h3 { -webkit-transform: translateZ(60px) translateY(100px); transform: translateZ(60px) translateY(100px); } .background { width: 100%; height: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; position: relative; background: -webkit-linear-gradient(330deg, rgba(50, 150, 100, 0.4), rgba(0, 0, 100, 0)); background: linear-gradient(120deg, rgba(50, 150, 100, 0.4), rgba(0, 0, 100, 0)); } .background:before, .background:after { position: absolute; content: " "; top: 0; left: 0; right: 0; bottom: 0; background: -webkit-linear-gradient(bottom, rgba(0, 0, 200, 0.4), rgba(0, 0, 200, 0)); background: linear-gradient(0deg, rgba(0, 0, 200, 0.4), rgba(0, 0, 200, 0)); } .background:after { background: -webkit-linear-gradient(210deg, rgba(150, 50, 50, 0.4), rgba(0, 0, 200, 0)); background: linear-gradient(240deg, rgba(150, 50, 50, 0.4), rgba(0, 0, 200, 0)); } .info { font-family: 'Oxygen', sans-serif; color: white; position: absolute; bottom: 10px; left: 10px; }
JavaScript
"use strict"; var body = document.body; var tilted = false; var toggleTilt = function () { tilted = !tilted; if (tilted) body.classList.add('details'); else body.classList.remove('details'); }; body.addEventListener('click', toggleTilt); body.addEventListener('touchstart', toggleTilt); if (location.pathname.match(/fullcpgrid/i)) setTimeout(toggleTilt, 1000);
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>3D步数卡-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号