|
|

楼主 |
发表于 2022-4-9 09:47
|
显示全部楼层
本帖最后由 马黑黑 于 2022-4-9 09:49 编辑
- <style>
- .stage{
- margin: auto;
- position: relative;
- left: -214px;
- width: 1024px;
- height: 682px;
- background: #666 url('https://638183.freep.cn/638183/Pic/2022/jia.jpg') no-repeat center/cover;
- perspective: 3000px;
- perspective-origin: 50% 50%;
- }
- .stage::before {
- content: '';
- position: absolute;
- width: 100%;
- height: 100%;
- background: url('https://638183.freep.cn/638183/Pic/2022/smoke1.gif') no-repeat center/cover;
- opacity: .1;
- }
- .circle {
- --x: 80px;
- position: absolute;
- width: var(--x);
- height: var(--x);
- left: 330px;
- top: 190px;
- cursor: pointer;
- transform-style: preserve-3d;
- animation: rot 5s linear infinite;
- }
- .circle div {
- position: absolute;
- width: 100%;
- height: 100%;
- border: 1px solid skyblue;
- border-radius: 50%;
- padding: 0;
- }
- .circle div:nth-child(1){ transform:rotateY(0deg);}
- .circle div:nth-child(2){ transform:rotateY(30deg);}
- .circle div:nth-child(3){ transform:rotateY(60deg);}
- .circle div:nth-child(4){ transform:rotateY(90deg);}
- .circle div:nth-child(5){ transform:rotateY(120deg);}
- .circle div:nth-child(6){ transform:rotateY(150deg);}
- @keyframes rot{
- 0%{ transform: rotateZ(30deg) rotateY(0turn);}
- 100%{ transform: rotateZ(30deg) rotateY(1turn);}
- }
- </style>
- <div class="stage">
- <div class="circle">
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- </div>
- </div>
- <script>
- var au = document.createElement('audio');
- au.src = 'http://www.kumeiwp.com/sub/filestores/2022/02/19/dc151655c9c2844f0b9daf26a0cee30f.mp3';
- au.loop = true;
- au.autoplay = true;
- document.querySelector('.stage').appendChild(au);
- document.querySelector('.circle').onclick = function() {
- au.paused ? (au.play(), this.style.animationPlayState = 'running') : (au.pause(), this.style.animationPlayState = 'paused');
- }
- </script>
复制代码
|
评分
-
| 参与人数 1 | 威望 +30 |
金钱 +60 |
经验 +30 |
收起
理由
|
小九
| + 30 |
+ 60 |
+ 30 |
很给力! |
查看全部评分
|