Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
3D
CSS3 allows you to format your elements using 3D transformations. Click Me.
css
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500,700); body { background-color: #6297e5; height: 70vh; } html, body, .card, .btn { transform-style: preserve-3d; font-family: "Roboto", sans-serif; } .card { pointer-events: none; will-change: transform; display: flex; flex-direction: column; margin: 40px auto; width: 350px; height: 200px; background-color: #ecf0f1; -moz-transition: all 0.3s; -o-transition: all 0.3s; -webkit-transition: all 0.3s; transition: all 0.3s; transform: rotateX(0deg) rotateZ(0deg); } .card.active { transform: rotateX(60deg) rotateZ(-40deg); } .card:before { transform: translateZ(0px); content: "CSS3 allows you to format your elements using 3D transformations. Click Me."; position: absolute; top: 40px; left: 20px; right: 20px; color: #d3d5d6; z-index: 2; } .info { position: absolute; top: 40px; left: 20px; right: 20px; transform: translateZ(10px); z-index: 1; } .btn { margin: auto; margin-bottom: 1em; width: 25%; height: 40px; background-color: #58cc5d; transform: translateZ(40px); position: relative; -moz-transition: all 0.3s; -o-transition: all 0.3s; -webkit-transition: all 0.3s; transition: all 0.3s; text-align: center; color: #fff; font-size: 27px; line-height: 40px; } .btn:hover { transform: translateZ(10px); } .item { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #4caf50; transform-origin: 50% 0; transform: rotateX(-90deg); -moz-transition: all 0.3s; -o-transition: all 0.3s; -webkit-transition: all 0.3s; transition: all 0.3s; } .item:nth-of-type(2), .item:nth-of-type(3) { transform-origin: 0 50%; transform: rotateY(90deg); width: 40px; } .item:nth-of-type(3) { left: 100%; transform: rotateY(90deg); } .item:nth-of-type(4) { transform: rotateX(-90deg) translateZ(40px); background-color: #39883c; } .item.card-item:nth-of-type(1), .item.card-item:nth-of-type(4) { height: 10px; background-color: #e6e6e6; } .item.card-item:nth-of-type(2), .item.card-item:nth-of-type(3) { width: 10px; background-color: #e6e6e6; } .item.card-item:nth-of-type(4) { transform: rotateX(-90deg) translateZ(200px); background-color: #d3d5d6; } input[type=checkbox] { display: none; } input[type=checkbox] + label { cursor: pointer; position: absolute; z-index: 9999; left: 50%; top: 0; margin-left: -175px; width: 350px; height: 200px; transform: translateZ(45px); } input[type=checkbox]:checked + label { transform: rotateX(60deg) rotateZ(-40deg); } input[type=checkbox]:checked + label + .card { transform: rotateX(60deg) rotateZ(-40deg); } .rabbit { width: 50px; height: 50px; position: absolute; bottom: 20px; right: 20px; z-index: 3; fill: #fff; }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Card 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号