查看: 1596|回复: 54

[单图] 【黑师代码】温暖(致:醉美水芙蓉)

[复制链接]
随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
发表于 2024-1-30 11:23 | 显示全部楼层 |阅读模式









评分

9

查看全部评分

点评
回复

使用道具

随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
 楼主| 发表于 2024-1-30 11:23 | 显示全部楼层
本帖最后由 花简静 于 2024-2-19 20:34 编辑

<style>
#papa { margin: 20px 0 20px calc(50% - 931px); width: 1700px; height: 900px; top:130px;border-radius: 6px; background: #ccc url('https://pic.imgdb.cn/item/65b7b499871b83018ad675b1.webp') no-repeat center/cover; box-shadow: 3px 3px 20px #000; position: relative; overflow: hidden;z-index: 1; }
.wrap { position: absolute; bottom: 0; left: calc(50% - 620px);top:330px; width: 196px; height: 420px; display: grid; place-items: center; }
.wrap::before { position: absolute; content: ''; width: 75%; height: 75%; border-radius: 10%; box-shadow: inset 0 0 60px rgba(50,10,200,.4); transition: .8s; }
.wrap:hover::before { box-shadow: inset 0 0 60px rgba(240,10,50,.6); }
#vid { position: absolute; width: 142px; height: 320px;top:52px; object-fit: cover; border-radius: 10%; aspect-ratio: 1; pointer-events: none; mix-blend-mode: screen; }
#player { position: absolute; width: 360px; height: 420px; cursor: pointer; animation: rotating 6s infinite linear var(--state); }
li-zi { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #eee; opacity: 0; animation: moving var(--duration) var(--delay) linear infinite alternate var(--state); }
#vid1 { position: absolute; width: 2100px; height: 1000px; bottom:-100px;right:-150px;object-fit: cover;  aspect-ratio: 1; pointer-events: none; mix-blend-mode: screen;opacity: .56; transform: rotateY(180deg);}
@keyframes moving { from { transform: translate(var(--x0),var(--y0)); opacity: 0; } to { transform: translate(var(--x1),var(--y1)); opacity: .95; } }
@keyframes rotating { to { transform: rotate(360deg); } }
</style>

<div id="papa">
    <audio id="aud" src="https://music.163.com/song/media/outer/url?id=325975" autoplay loop></audio>
    <div class="wrap">
        <video id="vid" src="https://img.tukuppt.com/video_show/2402760/00/01/45/5b43308f937a6.mp4" autoplay loop muted></video>
        <div id="player" title="播放/暂停"></div>
    </div>
    <video id="vid1" src="https://img.tukuppt.com/video_show/2269348/00/14/65/5e5a0f84ebc6f.mp4" autoplay loop muted></video>
</div>

<script>
(function() {
let sFile = document.createElement('script');
sFile.src = 'https://638183.freep.cn/638183/web/api/lrc.js';
sFile.charset = 'utf-8';
document.head.appendChild(sFile);

sFile.onload = () => {
    LRC({
        papa: '#papa',
        lrcAr: geci,
        btn: '#player',
        lrc_css: 'left: 50%; transform: translate(-50%);--bg: linear-gradient(rgba(250,250,250,.25),rgba(0,191,255.65)); position: absolute; bottom: 20px; font: bold 1.8em sans-serif; color: #F0F8FF;',
    });
};
let geci = [
    [-0.65,"单曲:温暖",1.9],
    [2.5,"歌手:姚晨",2.1],
    [4.59,"所属专辑:温暖",2.2],
    [6.8,"学习黑师《凡尘》梦幻水晶球播放效果",4.3],
    [18.01,"在这漫长的路上有太多期待",7.3],
    [26.07,"变幻不停的画面多少意外",7.9],
    [35.06,"心中向往的地方有多遥远",7.8],
    [44.06,"漫山遍野的春天何时到来",7.6],
    [52.88,"",18.1],
    [71.03,"幽蓝夜空多辽阔繁星点点",7.3],
    [80.25,"花开云落流转璃有你陪伴",7.0],
    [89.22,"分享所有的快乐还有忧伤",7.1],
    [98.11,"装点我寂寞的世界不再黯淡",6.9],
    [107.05,"多想这美好的歌声永远动听",6.9],
    [115.81,"就在这柔软的月光里直到天明",6.9],
    [124.75,"就让这美好的歌声永远动听",6.9],
    [133.03,"就在这柔软的月光里直到天明",7.5],
    [142.53,"就在这柔软的月光里直到天明",7.6]
];

    let r = player.offsetWidth /2 - 18,
    total = 100;
    Array.from({length: total}).forEach((item,key) => {
        let rad0 = (Math.PI / 180) * 360 / total * key,
            rad1 = (Math.PI / 180) * (180 + (360 / total * key));
        item = document.createElement('li-zi');
        item.style.cssText += `
            --x0: ${r + r * Math.cos(rad0)}px;
            --y0: ${r + r * Math.sin(rad0)}px;
            --x1: ${r + r * Math.cos(rad1)}px;
            --y1: ${r + r * Math.sin(rad1)}px;
            --duration: ${2 + Math.random() * 3}s;
            --delay: -${Math.random() * 5}s;
             background: url('https://img.soogif.com/eec7c8e4bca44deba45771d76e759ef0.gif') no-repeat center/cover;
        `;
        player.appendChild(item);
    });
    let mState = () => {
    aud.paused ? (papa.style.setProperty('--state','paused'), vid.pause()) : (papa.style.setProperty('--state','running'), vid.play());
    };

    aud.addEventListener('playing', mState, false);
    aud.addEventListener('pause', mState, false);
    player.onclick = () => aud.paused ? aud.play() : aud.pause();
})();
</script>
<br><br><br><br><br><br><br><br><br>





    
点评
回复

使用道具

随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
 楼主| 发表于 2024-1-30 11:23 | 显示全部楼层
点评
回复

使用道具

随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
 楼主| 发表于 2024-1-30 11:24 | 显示全部楼层
@醉美水芙蓉 欢迎水妞来到千山,今后继续一起玩图哦。。。。
点评
回复

使用道具

『默然守候』
少年歌行 守望千山 两周年庆 江湖之上 桃花朵朵 山高为峰 山外有山 巳巳如意 海洋之心 蝴蝶精灵 山间红叶 花漫千山 音画同行 中秋月圆 欢度国庆 雪花精灵 一叶知秋 我书我心 樱果相依 小青龙
发表于 2024-1-30 11:43 | 显示全部楼层
艾玛,我只能先留脚印,祝水妞收礼开心
点评
回复

使用道具

『默然守候』
少年歌行 守望千山 两周年庆 江湖之上 桃花朵朵 山高为峰 山外有山 巳巳如意 海洋之心 蝴蝶精灵 山间红叶 花漫千山 音画同行 中秋月圆 欢度国庆 雪花精灵 一叶知秋 我书我心 樱果相依 小青龙
发表于 2024-1-30 11:44 | 显示全部楼层
静妞这个过代码,我喜欢,图更喜欢
点评
回复

使用道具

『默然守候』
少年歌行 守望千山 两周年庆 江湖之上 桃花朵朵 山高为峰 山外有山 巳巳如意 海洋之心 蝴蝶精灵 山间红叶 花漫千山 音画同行 中秋月圆 欢度国庆 雪花精灵 一叶知秋 我书我心 樱果相依 小青龙
发表于 2024-1-30 11:45 | 显示全部楼层
明天我就彻底解放了,真开心
点评
回复

使用道具

『默然守候』
少年歌行 守望千山 两周年庆 江湖之上 桃花朵朵 山高为峰 山外有山 巳巳如意 海洋之心 蝴蝶精灵 山间红叶 花漫千山 音画同行 中秋月圆 欢度国庆 雪花精灵 一叶知秋 我书我心 樱果相依 小青龙
发表于 2024-1-30 11:46 | 显示全部楼层
祝水妞在千山玩得快乐!
点评
回复

使用道具

*破姐小跟班*
两周年庆 巳巳如意 一叶知秋 版主勋章 音画同行 山高为峰 山外有山 彩凤凰
发表于 2024-1-30 13:09 | 显示全部楼层
静静的图总能带来惊喜,太好看了
点评
回复

使用道具

*破姐小跟班*
两周年庆 巳巳如意 一叶知秋 版主勋章 音画同行 山高为峰 山外有山 彩凤凰
发表于 2024-1-30 13:10 | 显示全部楼层
背景质感,码子好看,布局合理制作完美
点评
回复

使用道具

您需要登录后才可以回帖 登录 | 中文注册

本版积分规则

手机版|千山论坛 ( 冀ICP备2024055714号 )

GMT+8, 2026-1-31 14:10

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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