|
|

楼主 |
发表于 2022-1-21 20:16
|
显示全部楼层
原帖完整代码:
- <style>
- #sky {
- margin: 10px auto;
- width: 720px;
- height: 460px;
- background-color: rgba(0,0,0,0.85);
- position: relative;
- }
- #sky:hover .wyyfram { display:block; }
- .moon {
- position: absolute;
- width: 100px;
- height: 100px;
- border-radius: 50%;
- box-shadow: 20px 20px 0 0 silver;
- z-index: 100;
- left: 70%;
- }
- .wyyfram { position: relative; top: 400px; display: none; opacity: 0.5; }
- #sky span {
- position: absolute;
- display: inline-block;
- width: 3px;
- height: 3px;
- background: white;
- opacity: 0.6;
- transform: rotate(45deg);
- animation: splash var(--d) infinite;
- }
- @keyframes splash {
- 0%, 100% { opacity: 0.2; }
- 50% { opacity: 0.8; transform:scale(1.5) rotate(-45deg); }
- }
- </style>
- <div id="sky">
- <div class="moon"></div>
- <iframe class="wyyfram" frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="https://music.163.com/outchain/player?type=2&id=410042763&auto=1&height=66"></iframe>
- </div>
- <script>
- var str = "";
- for (i=0; i<600; i++) {
- str += '<span style="left: ' + Math.ceil(Math.random()*100) + '%; top: ' + Math.ceil(Math.random()*100) + '%; --d:' + Math.ceil(Math.random()*10+0.5) + 's;"></span>';
- }
- document.getElementById('sky').innerHTML += str;
- </script>
复制代码
|
评分
-
| 参与人数 1 | 威望 +50 |
金钱 +100 |
经验 +50 |
收起
理由
|
红影
| + 50 |
+ 100 |
+ 50 |
赞一个! |
查看全部评分
|