马黑黑 发表于 2023-4-22 13:35

千叶城

<style>
#papa {margin: -80px 0 0 calc(50% - 593px);width: 1024px;height: 640px;background: url('https://638183.freep.cn/638183/t23/webp1/qmye.webp') no-repeat center/cover;box-shadow: 0 0 8px #444;position: relative;--state: paused;}
#lrc {--motion: cover2;--tt: 2s;--bg: linear-gradient(180deg, hsla(60, 50%, 50%, .45), hsla(80, 70%, 50%, .6));position: absolute;left: 50%;bottom: 20px;transform: translate(-50%);font: bold 2.4em sans-serif;color: hsl(0, 10%, 90%);white-space: pre;-webkit-background-clip: text;filter: drop-shadow(1px 1px 2px hsla(0, 0%, 0%, .95));}
#lrc::before {position: absolute;content: attr(data-lrc);width: 20%;height: 100%;color: transparent;overflow: hidden;white-space: pre;background: var(--bg);filter: inherit;-webkit-background-clip: text;animation: var(--motion) var(--tt) linear forwards var(--state);}
@keyframes cover1 { from { width: 0; } to { width: 100%; } }
@keyframes cover2 { from { width: 0; } to { width: 100%; } }
</style>

<div id="papa">
        <css-doodle id="mplayer" click-to-update>
                :doodle {
                        @grid: 5 / 200px;
                        @shape: circle;
                        position: absolute;
                        left: 20px;
                        top: 20px;
                        filter: drop-shadow(10px 10px 20px snow);
                        cursor: pointer;
                }
                background: #@repeat(6, @p());
                @shape: clover @p(3,4,5);
                @size: @r(20, 40)px;
                animation: rot 6s infinite linear var(--state);
                @keyframes rot { to { transform: rotate(360deg); } }
        </css-doodle>
        <div id="lrc" data-lrc="HCPlayer">HCPlayer</div>
        <audio id="aud" src="https://music.163.com/song/media/outer/url?id=1832925715" autoplay loop></audio>
</div>

<script>
let mKey = 0, mFlag = true;
let lrcAr = [,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,];
let scriptEle = document.createElement('script');
scriptEle.setAttribute('type','text/javascript');
scriptEle.setAttribute('src','https://unpkg.com/css-doodle@0.34.8/css-doodle.min.js');
document.head.appendChild(scriptEle);
let mState = () => papa.style.setProperty('--state', aud.paused ? 'paused' : 'running');
mplayer.onclick = () => aud.paused ? aud.play() : aud.pause();
aud.addEventListener('play', mState, false);
aud.addEventListener('pause', mState, false);
aud.addEventListener('seeked', () => calcKey());
let showLrc = (time) => {let name = mFlag ? 'cover1' : 'cover2';lrc.innerHTML = lrcAr;lrc.dataset.lrc = lrcAr.replace(/<br>/, '\n');lrc.style.setProperty('--motion', name);lrc.style.setProperty('--tt', time + 's');papa.style.setProperty('--state', 'running');mKey += 1;mFlag = !mFlag;};let calcKey = () => {for (j = 0; j < lrcAr.length; j++) {if (aud.currentTime <= lrcAr) {mKey = j - 1;break;}}if (mKey < 0) mKey = 0;if (mKey > lrcAr.length - 1) mKey = lrcAr.length - 1;let time = lrcAr - (aud.currentTime - lrcAr);showLrc(time);};
aud.addEventListener('timeupdate', () => {for (j = 0; j < lrcAr.length; j++) {if (aud.currentTime >= lrcAr) {cKey = j;if (mKey === j) showLrc(lrcAr);else continue;}}});
</script>

醉美水芙蓉 发表于 2023-4-22 17:50

马黑黑 发表于 2023-4-22 17:52

醉美水芙蓉 发表于 2023-4-22 17:50
欣赏学习老师佳作!

下午好

红影 发表于 2023-4-22 19:03

这歌词好奇特,头一次听到歌曲。这3D球的阴影好看{:4_199:}

红影 发表于 2023-4-22 19:06

这个背景图也好奇特,夜幕下的房子里的是一群动物?{:4_173:}

红影 发表于 2023-4-22 19:07

歌词很像朦胧诗,搜了一下,这首歌属于摇滚,蒲羽也被称为中国第一女贝斯手。

马黑黑 发表于 2023-4-22 19:15

红影 发表于 2023-4-22 19:07
歌词很像朦胧诗,搜了一下,这首歌属于摇滚,蒲羽也被称为中国第一女贝斯手。

{:4_181:}

马黑黑 发表于 2023-4-22 19:16

红影 发表于 2023-4-22 19:03
这歌词好奇特,头一次听到歌曲。这3D球的阴影好看

歌是有点特别的

马黑黑 发表于 2023-4-22 19:16

红影 发表于 2023-4-22 19:06
这个背景图也好奇特,夜幕下的房子里的是一群动物?

你知道俺是研究动物的

梦缘 发表于 2023-4-22 19:20

千叶播放按钮,好看,欣赏问好!{:4_185:}

马黑黑 发表于 2023-4-22 19:21

梦缘 发表于 2023-4-22 19:20
千叶播放按钮,好看,欣赏问好!

{:4_191:}

绿叶清舟 发表于 2023-4-22 21:16

叶子开会啊{:4_173:}这么多各种形状的叶子

马黑黑 发表于 2023-4-22 21:17

绿叶清舟 发表于 2023-4-22 21:16
叶子开会啊这么多各种形状的叶子

这是人民陪审团

绿叶清舟 发表于 2023-4-22 21:17

马黑黑 发表于 2023-4-22 21:17
这是人民陪审团

叶子陪审团吧

马黑黑 发表于 2023-4-22 21:19

绿叶清舟 发表于 2023-4-22 21:17
叶子陪审团吧

人民数量众多,叶子也一样

绿叶清舟 发表于 2023-4-22 21:20

马黑黑 发表于 2023-4-22 21:19
人民数量众多,叶子也一样

叶子比人民更多吧

小辣椒 发表于 2023-4-22 21:27

刚才看见水芙蓉的制作是黑黑这个效果吧

小辣椒 发表于 2023-4-22 21:35

黑黑这个背景图颜色真美。还特别有意境,就感觉黑黑审美观有点水准

马黑黑 发表于 2023-4-22 22:21

小辣椒 发表于 2023-4-22 21:35
黑黑这个背景图颜色真美。还特别有意境,就感觉黑黑审美观有点水准

{:5_109:}

马黑黑 发表于 2023-4-22 22:23

绿叶清舟 发表于 2023-4-22 21:20
叶子比人民更多吧

一样一样的
页: [1] 2
查看完整版本: 千叶城