朵拉 发表于 2024-2-20 23:26

不如见一面(马黑黑原创)

本帖最后由 朵拉 于 2024-2-21 09:32 编辑 <br /><br /><style>
#papa {
    margin: 0 0 0 calc(50% - 593px);
    width: 1024px;
    height: 640px;
    background: url('https://pic.imgdb.cn/item/65d4c83d9f345e8d03505f80.jpg') no-repeat center/cover;
    box-shadow: 3px 3px 20px #000;
    position: relative;
    display: grid;
    place-items: center;
    z-index: 1;
}
#lrc {
    position: absolute;
    top: 10px;
    font: bold 2.4em sans-serif;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,.45);
    --ani: lrcGo1;
    --duration: 1s;
}
#lrc::before {
    position: absolute;
    content: attr(data-lrc);
    width: 100%;
    height: 100%;
    color: transparent;
    background: repeating-radial-gradient(lightgreen, red, lightgreen 24px);
    background-clip: text;
    -webkit-background-clip: text;
    clip-path: inset(0 100% 0 0);
    animation: var(--ani) var(--duration) linear forwards var(--state);
    border-bottom: 4px ridge lightgreen;
}
#btnplay {
    position: absolute;
    bottom: 10px;
    width: 200px;
    height: 200px;
    animation: rotating 6s linear infinite var(--state);
    cursor: pointer;
}
ye-zi {
    position: absolute;
    left: calc(50% - 0.5 * var(--ww));
    top: 0;
    width: var(--ww);
    height: 80px;
    border-radius: 0 100%;
    background: repeating-radial-gradient(green, red, green 10%);
    transform-origin: 50% 100%;
    transform: rotate(var(--deg));
}
@keyframes rotating { to { transform: rotate(360deg); } }
@keyframes lrcGo0 { to { clip-path: inset(0 0 0 0); } }
@keyframes lrcGo1 { to { clip-path: inset(0 0 0 0); } }
</style>
<div id="papa">
    <audio id="aud" src="http://www.kumeiwp.com/sub/filestores/2024/02/11/81ce54cbb71caf52d39b1cc6f981cf82.mp3" autoplay="" loop=""></audio>
    <div id="lrc" data-lrc="HUACHAO LRC">HUACHAO LRC</div>
    <div id="btnplay"></div>
</div>
<script>
var geci = [ ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ];
var sF = document.createElement('script');
sF.charset = 'utf-8';
sF.src = 'https://638183.freep.cn/638183/web/js/btnlrc.js';
document.querySelector('body').appendChild(sF);
//按钮叶瓣 : 9
Array.from({length: all = 9}).forEach((item,key) => {
    item = document.createElement('ye-zi');
    item.style.cssText += `--ww: 30px; --deg: ${360 / all * key}deg;`;
    btnplay.prepend(item);
});
</script>

朵拉 发表于 2024-2-20 23:55

@马黑黑
老师 晚上好,学生交作业,请指正哈{:4_190:}

庶民 发表于 2024-2-21 08:47

欣赏。

梦油 发表于 2024-2-21 10:50

字幕设计挺好的。

红影 发表于 2024-2-21 10:55

这个修改了播放器按钮的颜色,真不错。{:4_187:}
怎么歌词里看到一句带乱码的?

红影 发表于 2024-2-21 10:58

就是第一句的前面,去看代码没看出什么问题啊,奇怪{:4_203:}
页: [1]
查看完整版本: 不如见一面(马黑黑原创)