Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Created by potrace 1.15, written by Peter Selinger 2001-2017
css
html { height: 100%; } body { margin: 0; height: 100%; background: linear-gradient(#0f1a2b, #411d63); } .moon { width: 100px; height: 100px; border-radius: 50%; background: #ffffdd; box-shadow: inset -11px -8px 0px 4px #feffa2, 0px 0px 10px 0px #feffa2, 0px 0px 50px 0px #feffa2, 0px 0px 500px 0px #feffa2; display: inline-block; position: relative; top: 10%; left: 10%; animation: 3s moonglow ease-in-out infinite alternate; } .crater { position: absolute; background: rgba(255, 244, 118, 1); border-radius: 50%; box-shadow: inset 1px 1px 0px 1px #ecec79; } .crater:nth-child(1) { width: 25px; height: 25px; top: 57%; left: 30%; } .crater:nth-child(2) { width: 16px; height: 16px; top: 30%; left: 23%; } .crater:nth-child(3) { width: 12px; height: 12px; top: 50%; left: 14%; } .crater:nth-child(4) { width: 30px; height: 30px; top: 20%; left: 30%; box-shadow: none; background: rgba(255, 244, 118, 0.3); } .ground { position: absolute; left: 0; bottom: 0; width: 100%; height: 11%; background: black; z-index: 100; perspective: 1000px; } .rock:nth-child(1) { position: absolute; width: 10%; height: 100%; top: -20%; left: 10%; background: black; border-radius: 20px; transform: skewX(10deg) } .rock:nth-child(2) { position: absolute; width: 15%; height: 100%; top: -20%; right: 25%; background: black; border-radius: 20px; transform: rotateZ(10deg) skewX(9deg); } .rock:nth-child(3) { position: absolute; width: 5%; height: 50%; top: -15%; right: 38%; background: black; border-radius: 20px; transform: rotateZ(-15deg); } .star { position: absolute; width: 1px; height: 1px; border-radius: 50%; animation-iteration-count: infinite; } .cactus { position: absolute; bottom: 10%; right: 10%; z-index: 900; width: 100px; } .shooting { position: relative; top: 30%; left: 30%; width: 300px; height: 5px; border-radius: 5px; display: inline-block; transform: rotateZ(-30deg); } .shooting .core { display: inline-block; position: absolute; top: 0; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #ffff84; box-shadow: 0px 0px 3px 1px rgba(255, 245, 131, 0.5), 0px 0px 10px 5px rgba(255, 245, 131, 0.2); animation: 6s linear infinite core; } .shooting .trail { display: inline-block; position: absolute; content: ''; width: 100px; height: 5px; border-radius: 50% 0 0 50%; background: linear-gradient( to right, rgba(255, 245, 174,0.7), rgba(255, 245, 174, 0.2) 50%, transparent); top: -1px; left: 0; animation: 6s linear infinite trail; } @keyframes glow { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } } @keyframes moonglow { 0% { transform: scale(1); } 100% { transform: scale(1.02); } } @keyframes core { 0% { left: 100%; opacity: 1; } 5% { left: 60%; opacity: 0.8; } 10% { left: 0; opacity: 0; } 100% { left: 0; opacity: 0; } } @keyframes trail { 0% { left: 100%; opacity: 1; width: 0; } 5% { left: 65%; opacity: 0.5; width: 150px; } 10% { left: 0; opacity: 0; width: 150px; } 100% { left: 0; opacity: 0; width: 150px; } }
JavaScript
(() => { const max_stars = 100; const stars = []; for (let i = 0; i < max_stars; i++) { const star = document.createElement('span'); const size = (Math.floor(Math.random() * 3) + 1); star.className = 'star'; star.style.width = size +'px'; star.style.height = size + 'px'; star.style.background = `rgba(255, 255, 177, ${Math.random()})`; star.style.top = Math.ceil(Math.random() * 100) + '%'; star.style.left = Math.ceil(Math.random() * 100) + '%'; stars.push(star); document.body.appendChild(star); } for (let j = 0; j < max_stars * 0.6; j++) { const star = stars[j]; star.style.animationName = 'glow'; star.style.animationDelay = (Math.floor(Math.random() * 6) + 1) + 's'; star.style.animationDuration = (Math.floor(Math.random() * 6) + 1) + 's'; } })();
粒子
时间
文字
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号