小辣椒 发表于 2024-9-13 22:37

林剑衡---给我一次疼你的机会

<style>
#tz {
        margin: 140px 0 30px calc(50% - 680px);
        width: 1198px;
        height: 646px;
        background: url('https://xlaj.cn/upfile/img/6F.gif') no-repeat center/cover;
        box-shadow: 3px 3px 6px #333;
        display: grid;
        place-items: center;
        position: relative;
}
#player {
        --size: 100px;
        --border: 10px;
        position: absolute;;
        top: 75%;
                left: 5%;
        width: var(--size);
        height: var(--size);
        border-radius: 50%;
        cursor: pointer;
        animation: rot 8s linear infinite var(--state);
}
.infinity {
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 0 3px black);
        position: absolute;

}
.infinity::before, .infinity::after {
        position: absolute;
        content: '';
        width: calc(50% - var(--border) * 1.5);
        height: calc(50% - var(--border) * 1.5);
        border: var(--border) solid #cfcc13;
        border-radius:20% 50% 0 50%;
        transform-origin: 100% 100%;
}
.infinity::after { transform: rotate(-180deg) translate(var(--border), var(--border)); }
#vid {
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
        height: 50%;
                opacity: .15;
        object-fit: cover;
        pointer-events: none;
        mix-blend-mode: hard-light;
        -webkit-mask: linear-gradient(red, transparent);
}
@keyframes rot { to { transform: rotate(1turn); } }
</style>

<div id="tz">
        <audio id="aud" src="https://v.djqq.net/tttdj/upfile/20240901124422.mp3" autoplay loop></audio>
        <video id="vid" src="https://video-qn.51miz.com/preview/video/00/00/16/53/V-165318-1D1F6794.mp4" autoplay loop muted></video>
        <div id="player"></div>
</div>


<script>
var draggable = false, offset = 80, time_delay = 0;
var sc = document.createElement('script');
sc.src = 'https://638183.freep.cn/638183/web/api/fullscreen.js';
sc.charset = 'utf-8';
document.body.appendChild(sc);
sc.onload = () => FS({
        papa: '#tz',
        css: 'bottom: 20px; --fsBg: transparent; --color: white;',
});
Array(total = 3).fill('').forEach((el,k) => {
        el = document.createElement('div');
        el.className = 'infinity';
        el.style.transform = `rotate(${360 / total * k}deg)`;
        player.appendChild(el);
});
aud.onplaying = aud.onpause = () => {
        tz.style.setProperty('--state', aud.paused ? 'paused' : 'running');
        aud.paused ? vid.pause() : vid.play();
}
player.onclick = () => aud.paused ? aud.play() : aud.pause();
</script>

小辣椒 发表于 2024-9-13 22:37

同一首完成

liumang 发表于 2024-9-13 23:53

{:5_152:}{:5_152:}{:5_152:}

liumang 发表于 2024-9-13 23:53

音频效果{:5_150:}

liumang 发表于 2024-9-13 23:56

@admin

进来欣赏同一首

liumang 发表于 2024-9-13 23:57

{:5_141:}{:5_143:}{:5_146:}

小辣椒 发表于 2024-9-15 21:53

liumang 发表于 2024-9-13 23:57


{:5_116:}{:5_116:}{:5_116:}

liumang 发表于 2024-9-15 22:59

小辣椒 发表于 2024-9-15 21:53


{:5_149:}{:5_149:}{:5_149:}
页: [1]
查看完整版本: 林剑衡---给我一次疼你的机会