楼主: 花简静

花简静贴子代码及说明汇总(翻页有新贴)

[复制链接]
 楼主| 发表于 2024-8-27 18:41 | 显示全部楼层
点评
 楼主| 发表于 2024-8-27 18:41 | 显示全部楼层
本帖最后由 花简静 于 2024-9-10 19:50 编辑

<style> #qsfg26 {     --state: running;     margin: 130px 0 30px calc(50% - 931px);     width: 1700px;     height: 900px;     background:url('https://pic.imgdb.cn/item/66cda37bd9c307b7e9fa69ab.webp') no-repeat center/cover;     border: 1px solid gray;     pointer-events: none;     position: relative;     overflow: hidden;    } #qsfg26::before, #qsfg26::after { position: absolute; content: ''; }   #qsfg26::before {     right: 230px;     bottom: 330px;     width: 90px;     height: 90px;     background: url('https://638183.freep.cn/638183/small/hxxb.png') no-repeat center/cover;     cursor: pointer;     pointer-events: auto;     animation: rot 6s linear infinite var(--state); } #qsfg26::after {     right: 560px;     bottom: 590px;     width: 60px;     height: 60px;     background: url('https://638183.freep.cn/638183/small/hxxb.png') no-repeat center/cover;     cursor: pointer;     pointer-events: auto;     animation: rot 6s linear infinite var(--state); } @keyframes rot { to { transform: rotate(360deg); } }   #vid {     position: absolute;     width: 700px;     height: 700px;     object-fit: cover;     opacity: .69;     bottom:220px;     left:100px;     border-radius: 50%;     mix-blend-mode: screen;     -webkit-mask: radial-gradient(circle, silver, lightgreen, cyan 50%, transparent 60%,transparent,transparent); } </style>   <div id="qsfg26" title="播放/暂停">     <audio id="aud" src="https://music.163.com/song/media/outer/url?id=32743519" autoplay loop></audio>     <video id="vid" src="https://img.tukuppt.com/video_show/2475824/00/01/90/5b4d67697ecab.mp4" autoplay loop muted></video> </div>   <script> mState = () => {     qsfg26.style.setProperty('--state', aud.paused ? 'paused' : 'running');     qsfg26.title = ['暂停','播放'][+aud.paused];     aud.paused ? vid.pause() : vid.play(); }; aud.oncanplay = aud.onplaying = aud.onpause = () => mState(); qsfg26.onclick = () => aud.paused ? aud.play() : aud.pause(); </script>
点评
 楼主| 发表于 2024-8-27 18:41 | 显示全部楼层
点评
 楼主| 发表于 2024-8-28 18:40 | 显示全部楼层
点评
 楼主| 发表于 2024-8-28 18:40 | 显示全部楼层
点评
 楼主| 发表于 2024-8-28 18:40 | 显示全部楼层
点评
 楼主| 发表于 2024-8-28 18:40 | 显示全部楼层
点评
 楼主| 发表于 2024-8-28 18:40 | 显示全部楼层
点评
 楼主| 发表于 2024-8-28 18:40 | 显示全部楼层
点评
 楼主| 发表于 2024-8-28 18:40 | 显示全部楼层
点评
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|千山论坛

GMT+8, 2025-2-24 05:19

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表