Moya Brennan : Show Me
本帖最后由 马黑黑 于 2024-4-20 07:59 编辑 <br /><br /><style>#papa { margin: -60px 0 0 calc(50% - 593px); width: 1024px; height: 640px; background: #000 url('https://638183.freep.cn/638183/t24/1/moya.jpg') no-repeat center/cover; box-shadow: 2px 2px 6px rgba(0,0,0,.6); display: grid; place-items: center; overflow: hidden; user-select: none; z-index: 1; position: relative; }
#papa::before { position: absolute; content: ''; left: -100%; top: -100%; width: 100%; height: 100%; background: url('https://638183.freep.cn/638183/t24/1/moya0.jpg') no-repeat center/cover; opacity: 0; transition: 5s; }
#papa:hover::before { left: 0; top: 0; opacity: 1; }
.play { position: absolute; left: 694px; top: 20px; width: 200px; animation: rot 6s linear infinite var(--state); z-index: 9; cursor: pointer; }
.play:nth-of-type(2) { left: 132px; filter: hue-rotate(120deg); }
#papa video { position: absolute; top: -200px; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; pointer-events: none; }
#papa video:nth-of-type(2) { top: 0; border-radius: 0 30%; opacity: .5; }
@Keyframes rot { to { transform: rotate(360deg); } }
</style>
<div id="papa">
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=2040200174" autoplay loop></audio>
<video src="https://img.tukuppt.com/video_show/2475824/00/01/58/5b56a385e42de.mp4" loop muted></video>
<video src="https://img.tukuppt.com/video_show/2475824/00/01/68/5b48425912ddd.mp4" loop muted></video>
<imgclass="play" src="https://638183.freep.cn/638183/t24/leaf/5l.png" alt="" />
<imgclass="play" src="https://638183.freep.cn/638183/t24/leaf/5l.png" alt="" />
</div>
<script>
var loadJs = (file, callback) => {
let sc = document.createElement('script');
sc.src = file;
sc.charset = 'utf-8';
document.body.appendChild(sc);
sc.onload = () => callback();
};
var js1 = 'https://638183.freep.cn/638183/web/api/lrc.js';
var js2 = 'https://638183.freep.cn/638183/web/js/ball-lz.js';
loadJs(js1, () => {
LRC({
papa: '#papa',
lrcAr: lrcAr,
btn: '.play',
lrc_css: 'bottom: 20px;',
});
});
loadJs(js2, () => {});
lz = {papa: '#papa', total: 40, maxsize: 20, speed: 1, move: true};
let lrcAr = [
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
];
papa.onclick = () => lz.move = !aud.paused;
</script>
<style>
.mum { position: relative; margin: 0; padding: 10px; font: normal 16px/20px Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; color: black; background: rgba(240, 240, 240,.95); box-shadow: 2px 2px 4px gray; border: thick groove lightblue; border-radius: 6px; }
.mum ::selection { background-color: rgba(0,100,100,.35); }
.mum div { margin: 0; padding: 0; }
.mum cl-cd { display: block; position: relative; margin: 0 0 0 50px; padding: 0 0 0 10px; white-space: pre-wrap; overflow-wrap: break-word; border-left: 1px solid silver; }
.mum cl-cd::before { position: absolute; content: attr(data-idx); width: 50px; color: gray; text-align: right; transform: translate(-70px); }
.tRed { color: red; }
.tBlue { color: blue; }
.tGreen { color: green; }
.tDarkRed { color: darkred; }
.tMagenta { color: magenta; }
</style>
<h2>帖子代码</h2>
<div class='mum'>
<cl-cd data-idx="1"><<span class="tDarkRed">style</span>></cl-cd>
<cl-cd data-idx="2"> #papa { <span class="tBlue">margin:</span> 0 0 0 calc(50% - 593px); <span class="tBlue">width:</span> 1024px; <span class="tBlue">height:</span> 640px; <span class="tBlue">background:</span> #000 url(<span class="tMagenta">'https://638183.freep.cn/638183/t24/1/moya.jpg'</span>) no-repeat center/cover; <span class="tBlue">box-shadow:</span> 2px 2px 6px rgba(0,0,0,.6); <span class="tBlue">display:</span> grid; <span class="tBlue">place-items:</span> center; <span class="tBlue">overflow:</span> hidden; <span class="tBlue">user-select:</span> none; <span class="tBlue">position:</span> relative; }</cl-cd>
<cl-cd data-idx="3"> #papa::before { <span class="tBlue">position:</span> absolute; <span class="tBlue">content:</span> <span class="tMagenta">''</span>; <span class="tBlue">left:</span> -100%; <span class="tBlue">top:</span> -100%; <span class="tBlue">width:</span> 100%; <span class="tBlue">height:</span> 100%; <span class="tBlue">background:</span> url(<span class="tMagenta">'https://638183.freep.cn/638183/t24/1/moya0.jpg'</span>) no-repeat center/cover; <span class="tBlue">opacity:</span> 0; <span class="tBlue">transition:</span> 5s; }</cl-cd>
<cl-cd data-idx="4"> #<span class="tBlue">papa:</span>hover::before { <span class="tBlue">left:</span> 0; <span class="tBlue">top:</span> 0; <span class="tBlue">opacity:</span> 1; }</cl-cd>
<cl-cd data-idx="5"> .play { <span class="tBlue">position:</span> absolute; <span class="tBlue">left:</span> 694px; <span class="tBlue">top:</span> 20px; <span class="tBlue">width:</span> 200px; <span class="tBlue">animation:</span> rot 6s linear infinite <span class="tBlue">var</span>(--state); <span class="tBlue">z-index:</span> 9; <span class="tBlue">cursor:</span> pointer; }</cl-cd>
<cl-cd data-idx="6"> .<span class="tBlue">play:</span>nth-of-type(2) { <span class="tBlue">left:</span> 132px; <span class="tBlue">filter:</span> hue-rotate(120deg); }</cl-cd>
<cl-cd data-idx="7"> #papa video { <span class="tBlue">position:</span> absolute; <span class="tBlue">top:</span> -200px; <span class="tBlue">width:</span> 100%; <span class="tBlue">height:</span> 100%; <span class="tBlue">object-fit:</span> cover; <span class="tBlue">mix-blend-mode:</span> screen; <span class="tBlue">pointer-events:</span> none; }</cl-cd>
<cl-cd data-idx="8"> #papa <span class="tBlue">video:</span>nth-of-type(2) { <span class="tBlue">top:</span> 0; <span class="tBlue">border-radius:</span> 0 30%; <span class="tBlue">opacity:</span> .5; }</cl-cd>
<cl-cd data-idx="9"> @Keyframes rot { to { <span class="tBlue">transform:</span> rotate(360deg); } }</cl-cd>
<cl-cd data-idx="10"><<span class="tDarkRed">/style</span>></cl-cd>
<cl-cd data-idx="11"> </cl-cd>
<cl-cd data-idx="12"><<span class="tDarkRed">div</span> <span class="tRed">id</span>=<span class="tMagenta">"papa"</span>></cl-cd>
<cl-cd data-idx="13"> <<span class="tDarkRed">audio</span> <span class="tRed">id</span>=<span class="tMagenta">"aud"</span> src=<span class="tMagenta">"https://music.163.com/song/media/outer/url?<span class="tRed">id</span>=2040200174"</span> autoplay loop><<span class="tDarkRed">/audio</span>></cl-cd>
<cl-cd data-idx="14"> <<span class="tDarkRed">video</span> src=<span class="tMagenta">"https://img.tukuppt.com/video_show/2475824/00/01/58/5b56a385e42de.mp4"</span> loop muted><<span class="tDarkRed">/video</span>></cl-cd>
<cl-cd data-idx="15"> <<span class="tDarkRed">video</span> src=<span class="tMagenta">"https://img.tukuppt.com/video_show/2475824/00/01/68/5b48425912ddd.mp4"</span> loop muted><<span class="tDarkRed">/video</span>></cl-cd>
<cl-cd data-idx="16"> <<span class="tDarkRed">img</span>class=<span class="tMagenta">"play"</span> src=<span class="tMagenta">"https://638183.freep.cn/638183/t24/leaf/5l.png"</span> alt=<span class="tMagenta">""</span> /></cl-cd>
<cl-cd data-idx="17"> <<span class="tDarkRed">img</span>class=<span class="tMagenta">"play"</span> src=<span class="tMagenta">"https://638183.freep.cn/638183/t24/leaf/5l.png"</span> alt=<span class="tMagenta">""</span> /></cl-cd>
<cl-cd data-idx="18"><<span class="tDarkRed">/div</span>></cl-cd>
<cl-cd data-idx="19"> </cl-cd>
<cl-cd data-idx="20"><<span class="tDarkRed">script</span>></cl-cd>
<cl-cd data-idx="21"><span class="tBlue">var</span> loadJs = (file, callback) => {</cl-cd>
<cl-cd data-idx="22"> <span class="tBlue">let</span> sc = <span class="tRed">document</span>.createElement(<span class="tMagenta">'script'</span>);</cl-cd>
<cl-cd data-idx="23"> sc.src = file;</cl-cd>
<cl-cd data-idx="24"> sc.charset = <span class="tMagenta">'utf-8'</span>;</cl-cd>
<cl-cd data-idx="25"> <span class="tRed">document</span>.body.appendChild(sc);</cl-cd>
<cl-cd data-idx="26"> sc.onload = () => callback();</cl-cd>
<cl-cd data-idx="27">};</cl-cd>
<cl-cd data-idx="28"> </cl-cd>
<cl-cd data-idx="29"><span class="tBlue">var</span> js1 = <span class="tMagenta">'https://638183.freep.cn/638183/web/api/lrc.js'</span>;</cl-cd>
<cl-cd data-idx="30"><span class="tBlue">var</span> js2 = <span class="tMagenta">'https://638183.freep.cn/638183/web/js/ball-lz.js'</span>;</cl-cd>
<cl-cd data-idx="31"> </cl-cd>
<cl-cd data-idx="32">loadJs(js1, () => {</cl-cd>
<cl-cd data-idx="33"> LRC({</cl-cd>
<cl-cd data-idx="34"> <span class="tBlue">papa:</span> <span class="tMagenta">'#papa'</span>,</cl-cd>
<cl-cd data-idx="35"> <span class="tBlue">lrcAr:</span> lrcAr,</cl-cd>
<cl-cd data-idx="36"> <span class="tBlue">btn:</span> <span class="tMagenta">'.play'</span>,</cl-cd>
<cl-cd data-idx="37"> lrc_<span class="tBlue">css:</span> <span class="tMagenta">'<span class="tBlue">bottom:</span> 20px;'</span>,</cl-cd>
<cl-cd data-idx="38"> });</cl-cd>
<cl-cd data-idx="39">});</cl-cd>
<cl-cd data-idx="40"> </cl-cd>
<cl-cd data-idx="41">loadJs(js2, () => {});</cl-cd>
<cl-cd data-idx="42"> </cl-cd>
<cl-cd data-idx="43">lz = {<span class="tBlue">papa:</span> <span class="tMagenta">'#papa'</span>, <span class="tBlue">total:</span> 40, <span class="tBlue">maxsize:</span> 20, <span class="tBlue">speed:</span> 1, <span class="tBlue">move:</span> true};</cl-cd>
<cl-cd data-idx="44"> </cl-cd>
<cl-cd data-idx="45"><span class="tBlue">let</span> lrcAr = [</cl-cd>
<cl-cd data-idx="46"> ,</cl-cd>
<cl-cd data-idx="47"> ,</cl-cd>
<cl-cd data-idx="48"> ,</cl-cd>
<cl-cd data-idx="49"> ,</cl-cd>
<cl-cd data-idx="50"> ,</cl-cd>
<cl-cd data-idx="51"> ,</cl-cd>
<cl-cd data-idx="52"> ,</cl-cd>
<cl-cd data-idx="53"> ,</cl-cd>
<cl-cd data-idx="54"> ,</cl-cd>
<cl-cd data-idx="55"> ,</cl-cd>
<cl-cd data-idx="56"> ,</cl-cd>
<cl-cd data-idx="57"> ,</cl-cd>
<cl-cd data-idx="58"> ,</cl-cd>
<cl-cd data-idx="59"> ,</cl-cd>
<cl-cd data-idx="60"> ,</cl-cd>
<cl-cd data-idx="61"> ,</cl-cd>
<cl-cd data-idx="62"> ,</cl-cd>
<cl-cd data-idx="63"> ,</cl-cd>
<cl-cd data-idx="64"> ,</cl-cd>
<cl-cd data-idx="65"> </cl-cd>
<cl-cd data-idx="66">];</cl-cd>
<cl-cd data-idx="67"> </cl-cd>
<cl-cd data-idx="68">papa.onclick = () => lz.move = !aud.paused;</cl-cd>
<cl-cd data-idx="69"><<span class="tDarkRed">/script</span>></cl-cd>
</div>
非常漂亮的音画作品。 愤怒的葡萄 发表于 2024-4-20 07:51
非常漂亮的音画作品。
早 歌词大意:
看看人群、时间、陌生人
我的眼里有些灰尘
看着盲人不会跌倒
不要再对我说谎
给我指路我从那里来
请给我指路去找到你
给我指路去听你的歌声
触摸我的手,时间、陌生人
地平线上的薄雾有多远
触摸墓碑,不会崩溃
再告诉我一次
给我指路我从那里来
请给我指路去找到你
给我指路去听你的歌声
马黑黑 发表于 2024-4-20 07:55
早
马版起得好早啊,不过我今天也是四点多就醒来的,五点开始看了两个多小时的电影。 愤怒的葡萄 发表于 2024-4-20 07:58
马版起得好早啊,不过我今天也是四点多就醒来的,五点开始看了两个多小时的电影。
厉害啊 马黑黑 发表于 2024-4-20 07:59
厉害啊
我看了贾玲主演的贺岁片《热辣滚烫》,感觉也拍得挺一般的。
今天醒得太早了,就起来看《热辣滚烫》了。 马黑黑 发表于 2024-4-20 07:59
厉害啊
葡萄在现实生活中只是一个普普通通的人,不是一个很优秀的人。 马版也起来挺早的,周六八点不到就起来灌水了。 愤怒的葡萄 发表于 2024-4-20 08:26
马版也起来挺早的,周六八点不到就起来灌水了。
最近身体有点问题,要按时起来服药,过一下再去补觉 愤怒的葡萄 发表于 2024-4-20 08:04
葡萄在现实生活中只是一个普普通通的人,不是一个很优秀的人。
优秀体现在普普通通的细节中 愤怒的葡萄 发表于 2024-4-20 08:04
我看了贾玲主演的贺岁片《热辣滚烫》,感觉也拍得挺一般的。
今天醒得太早了,就起来看《热辣滚烫》了 ...
我好久没有看这类东西了。我喜欢用大屏幕看,有手机投屏神奇,现在闲置着。等身体好起来,也要看几部fox的片子 这个厉害了,效果都是双份的呢。背景双份、按钮双份、视频也是双份。{:4_199:}
用nth-of-type() 增加的份数,意味着可以加无数个,只要愿意加{:4_173:} 马黑黑 发表于 2024-4-20 08:31
我好久没有看这类东西了。我喜欢用大屏幕看,有手机投屏神奇,现在闲置着。等身体好起来,也要看几部fox ...
马版,不跟你聊了,葡萄出去锻炼身体了,咱们等一下再聊吧,葡萄出去散步了。 两个按钮放在两边特定位置,还变化了色相,真漂亮。两个视频的处理方式也不相同。
这个帖子的代码非常便于自己去发挥{:4_187:} 恩雅的大姐的歌声也这么好听,而且多才多艺。他们一家子都很有音乐细胞啊{:4_199:} 红影 发表于 2024-4-20 08:34
这个厉害了,效果都是双份的呢。背景双份、按钮双份、视频也是双份。
用nth-of-type() 增加的份 ...
nth-of-type() 不是增加份数,是设置对应对象的样式 红影 发表于 2024-4-20 08:46
恩雅的大姐的歌声也这么好听,而且多才多艺。他们一家子都很有音乐细胞啊
艺术世家。恩雅的兄弟姐妹共9人,4男5女,几乎都在艺术方面有造诣。 马黑黑 发表于 2024-4-20 09:52
nth-of-type() 不是增加份数,是设置对应对象的样式
我是说可以加很多了啊{:4_173:}