|
|

楼主 |
发表于 2024-1-28 18:22
|
显示全部楼层
代码
- <style>
- .mybox { margin: 0 0 0 calc(50% - 593px); width: 1024px; height: 685px; background: url('https://638183.freep.cn/638183/t24/webp/ksxl.webp'); box-shadow: 3px 3px 20px #000; position: relative; overflow: hidden; z-index: 1; display: grid; place-items: center; }
- .mybox video { position: absolute; bottom: 0px; width: 300px; height: 300px; object-fit: cover; border-radius: 50%; opacity: 1; mix-blend-mode: lighten; }
- #mplayer { position: absolute; bottom: 10px; width: 300px; text-align: center; color: lightyellow; }
- #mplayer::before { position: absolute; content: attr(data-tt); left: 0; bottom: 25px; width: 100%; text-align-last: justify; }
- #mprog { width: 100%; accent-color: lightyellow; opacity: .9; outline: none; cursor: pointer; }
- #btnplay { width: 60px; height: 60px; clip-path: circle(48%); opacity: .7; transition: filter .65s; cursor: pointer; animation: rot 5s linear infinite var(--state); }
- #btnplay:hover { filter: hue-rotate(300deg); }
- @keyframes rot { to { transform: rotate(360deg);} }
- </style>
- <div class="mybox">
- <audio src="https://music.163.com/song/media/outer/url?id=572547816" autoplay loop></audio>
- <video src="https://img.tukuppt.com/video_show/2269348/00/01/91/5b4d5e7a6b4a6.mp4" loop></video>
- <div id="mplayer" data-tt="0:00 0:00">
- <img id="btnplay" src="https://638183.freep.cn/638183/small/mufuz2.jpg" alt="" title="播放/暂停" /><br>
- <input id="mprog" type="range" min="0" max="100" step="any" value="0" />
- </div>
- </div>
- <script>
- var sf = document.createElement('script');
- sf.src = 'https://638183.freep.cn/638183/web/js/mpku.js';
- sf.charset = 'utf-8';
- document.querySelector('body').appendChild(sf);
- </script>
复制代码
|
|