Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
css
*, *::before, *::after { padding: 0; margin: 0 auto; box-sizing: border-box; } body { background-color: #111; color: #fff; min-height: 100vh; display: flex; justify-content: center; align-items: center; perspective: 800px; overflow: hidden; } .fall { position: relative; transform-style: preserve-3d; -webkit-animation: fallRotate 42s infinite linear; animation: fallRotate 42s infinite linear; } @-webkit-keyframes fallRotate { to { transform: rotateY(360deg); } } @keyframes fallRotate { to { transform: rotateY(360deg); } } .wall { position: absolute; width: 80px; height: 80px; transform-style: preserve-3d; background-image: linear-gradient(#0007, #000c); -webkit-animation: move 15s infinite linear; animation: move 15s infinite linear; bottom: -210px; } .wall:nth-child(odd) { left: -10px; transform: translate(-50%, 50%) rotateY(90deg) rotateX(45deg) translatez(-20px) translateY(-220px); } .wall:nth-child(even) { left: 10px; transform: translate(-50%, 50%) rotateY(-90deg) rotateX(45deg) translatez(-20px) translateY(-220px); } .wall:nth-child(1) { -webkit-animation-delay: -1.5s; animation-delay: -1.5s; background-color: #ef8f8f; } .wall:nth-child(2) { -webkit-animation-delay: -3s; animation-delay: -3s; background-color: #efc98f; } .wall:nth-child(3) { -webkit-animation-delay: -4.5s; animation-delay: -4.5s; background-color: #dcef8f; } .wall:nth-child(4) { -webkit-animation-delay: -6s; animation-delay: -6s; background-color: #a3ef8f; } .wall:nth-child(5) { -webkit-animation-delay: -7.5s; animation-delay: -7.5s; background-color: #8fefb6; } .wall:nth-child(6) { -webkit-animation-delay: -9s; animation-delay: -9s; background-color: #8fefef; } .wall:nth-child(7) { -webkit-animation-delay: -10.5s; animation-delay: -10.5s; background-color: #8fb6ef; } .wall:nth-child(8) { -webkit-animation-delay: -12s; animation-delay: -12s; background-color: #a38fef; } .wall:nth-child(9) { -webkit-animation-delay: -13.5s; animation-delay: -13.5s; background-color: #dc8fef; } .wall:nth-child(10) { -webkit-animation-delay: -15s; animation-delay: -15s; background-color: #ef8fc9; } @-webkit-keyframes move { from { bottom: -1210px; } to { bottom: 810px; } } @keyframes move { from { bottom: -1210px; } to { bottom: 810px; } } .wall > div { position: absolute; background-color: inherit; } .wall .ceil { width: 80px; height: 80px; background-image: linear-gradient(#fff7, #fff0); -webkit-animation: wallCeil 15s infinite linear; animation: wallCeil 15s infinite linear; -webkit-animation-delay: inherit; animation-delay: inherit; overflow: hidden; } .wall .ceil::after { content: ""; position: absolute; width: 100%; height: 100%; background-image: radial-gradient(#000, #0000 50%); -webkit-animation: shadow 15s infinite linear; animation: shadow 15s infinite linear; -webkit-animation-delay: inherit; animation-delay: inherit; } @-webkit-keyframes shadow { 0%, 48%, 53%, 100% { opacity: 0; transform: translateY(80px) scale(2); } 50% { opacity: 0.25; transform: translateY(4px) scale(0.5); } } @keyframes shadow { 0%, 48%, 53%, 100% { opacity: 0; transform: translateY(80px) scale(2); } 50% { opacity: 0.25; transform: translateY(4px) scale(0.5); } } .wall .top { width: 80px; transform: rotateX(90deg); transform-origin: top; background-image: linear-gradient(#0007, #fff7); -webkit-animation: wallHeight 15s infinite linear; animation: wallHeight 15s infinite linear; -webkit-animation-delay: inherit; animation-delay: inherit; } .wall .bottom { bottom: 0; width: 80px; transform: rotateX(-90deg); transform-origin: bottom; background-image: linear-gradient(#fff0, #000c); -webkit-animation: wallHeight 15s infinite linear; animation: wallHeight 15s infinite linear; -webkit-animation-delay: inherit; animation-delay: inherit; } .wall .left { bottom: 0; height: 80px; transform: rotateY(-90deg); transform-origin: left; background-image: linear-gradient(to bottom left, #fff3, #000c); -webkit-animation: wallWidth 15s infinite linear; animation: wallWidth 15s infinite linear; -webkit-animation-delay: inherit; animation-delay: inherit; } .wall .right { bottom: 0; right: 0; height: 80px; transform: rotateY(90deg); transform-origin: right; background-image: linear-gradient(to bottom right, #fff3, #000c); -webkit-animation: wallWidth 15s infinite linear; animation: wallWidth 15s infinite linear; -webkit-animation-delay: inherit; animation-delay: inherit; } @-webkit-keyframes wallCeil { 0%, 49.75%, 55%, 100% { transform: translateZ(20px); } 50% { transform: translateZ(10px); } } @keyframes wallCeil { 0%, 49.75%, 55%, 100% { transform: translateZ(20px); } 50% { transform: translateZ(10px); } } @-webkit-keyframes wallHeight { 0%, 49.75%, 55%, 100% { height: 20px; } 50% { height: 10px; } } @keyframes wallHeight { 0%, 49.75%, 55%, 100% { height: 20px; } 50% { height: 10px; } } @-webkit-keyframes wallWidth { 0%, 49.75%, 55%, 100% { width: 20px; } 50% { width: 10px; } } @keyframes wallWidth { 0%, 49.75%, 55%, 100% { width: 20px; } 50% { width: 10px; } } .ballArm { position: absolute; bottom: -210px; width: 20px; height: 240px; transform-origin: bottom; transform-style: preserve-3d; -webkit-animation: armRotate 1.5s infinite linear alternate; animation: armRotate 1.5s infinite linear alternate; } @-webkit-keyframes armRotate { from { transform: translateX(-50%) rotate(-45deg); } to { transform: translateX(-50%) rotate(45deg); } } @keyframes armRotate { from { transform: translateX(-50%) rotate(-45deg); } to { transform: translateX(-50%) rotate(45deg); } } .ball { position: absolute; width: 20px; height: 20px; border-radius: 10%; transform-style: preserve-3d; -webkit-animation: ballRotateZ 1.5s infinite linear alternate; animation: ballRotateZ 1.5s infinite linear alternate; } @-webkit-keyframes ballRotateZ { from { transform: rotate(45deg); } to { transform: rotate(-45deg); } } @keyframes ballRotateZ { from { transform: rotate(45deg); } to { transform: rotate(-45deg); } } .ball::after { content: ""; position: absolute; width: 20px; height: 20px; background-image: radial-gradient(circle at top, #fff, #222); border-radius: 50%; -webkit-animation: ballRotateY 42s infinite linear; animation: ballRotateY 42s infinite linear; } @-webkit-keyframes ballRotateY { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } } @keyframes ballRotateY { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } }
JavaScript
粒子
时间
文字
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号