有声有色 发表于 2023-5-4 14:52

评弹西厢记——红娘问病


<div class="t_fsz">
<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_1808254">

<style>
#papa { margin: 120px 0 0 calc(50% - 721px); display: grid; place-items: center; width: 1280px; height: 718px; background: tan url('https://pic2.imgdb.cn/item/6453555e0d2dde577776b147.gif') no-repeat center/cover; box-shadow: 6px 3px 20px #000; user-select: none; overflow: hidden; perspective: 1500px; opacity: .95; position: relative; z-index: 1; }
#papa::before, #papa::after {position: absolute;content: '';background: url('') no-repeat center/cover;width: 364px;height: 400px;top: 350px;border-radius: 90%;filter: blur(1px) brightness(90%);box-shadow: 2px 4px 18px #000;}
#papa::after { width: 60px; height: 60px; top: calc(100% - 110px); left: 260px; filter: blur(0) brightness(100%) opacity(55%); }
#btnMsg { position: absolute; left: 48%;bottom: 120px; color: snow; background: green; opacity: 0; border: 2px solid snow; border-radius: 8px; padding: 4px; transition: all .75s; cursor: pointer; z-index: 1001; }
</style>

<div id="papa"> <span id="btnMsg">全屏观赏</span></div>
<audio id="aud" src="https://www.joy127.com/url/104494.mp3" autoplay loop></audio>

<script >
(function() {
        (function(mkPlayer) {let defaults = {lrcAr: [],lrc_css: 'top: 15px; left: 50%; transform: translate(-50%)',player_css: 'bottom: 5px; left: 50%; transform: translate(-50%)',playerCode: `<style>#mplayer {--ww: 300px;--hh:100px;--state: paused;position: absolute;width: var(--ww);height: var(--hh);transform-style: preserve-3d;animation: rot3d 120s infinite linear;animation-play-state: var(--state);cursor: pointer;z-index: 889;}.mline {position: absolute;width: 8px;height: 10px;bottom: 0;left: calc(50% - 4px);border-radius: 10px;transition: .35s;opacity: .95;}.mline::before {position: absolute;content: '';width: 12px;height: 12px;left: calc(50% - 6px);background: var(--psecolor);border-radius: 50%;transition: all var(--ts);animation: up 1s infinite;animation-play-state: var(--state);}#lrc { --motion: cover2; --tt: 1s; --state: running; --bg: linear-gradient(180deg,hsla(100,10%,50%,.75),hsla(100,100%,20%,.65)); position: absolute; font: bold 2.6em sans-serif; color: hsl(100, 100%, 90%); white-space: pre; -webkit-background-clip: text; filter: drop-shadow(1px 1px 2px hsla(0, 100%, 0%, .85)); z-index: 900; }#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; animation-play-state: var(--state); }@keyframes cover1 { from { width: 0; }to { width: 100%; } }@keyframes cover2 { from { width: 0; }to { width: 100%; } }@keyframes rot3d { to { transform: rotateY(1turn); } }@keyframes up { to { top: -20px; } }</style><div id="lrc" data-lrc="HCPlayer">HCPlayer</div><div id="mplayer"></div>`,};let playCode = (user_config) => {let data = Object.assign({}, defaults, user_config);papa.innerHTML += data.playerCode;mplayer.style.cssText += data.player_css;lrc.style.cssText += data.lrc_css;let mKey = 0,mFlag = true;mplayer.onclick = () => aud.paused ? aud.play() : aud.pause();let total = Math.floor(mplayer.offsetWidth / 5),mRad = Math.floor(mplayer.offsetWidth / 2);for (j = 0; j < total; j++) {let ele = document.createElement('span');ele.className = 'mline';ele.style.cssText += `background: linear-gradient(to bottom, #${Math.random().toString(16).substr(-6)}, #${Math.random().toString(16).substr(-6)});transform: rotateY(${j*360/total}deg) translateZ(${mRad}px);--psecolor: linear-gradient(135deg, #${Math.random().toString(16).substr(-6)}, #${Math.random().toString(16).substr(-6)});--ts: ${Math.random()}s;`;mplayer.appendChild(ele);}let lines = document.querySelectorAll('.mline');function update() {lines.forEach((item, key) => {let ph = aud.paused ? 0 : mplayer.offsetHeight;item.style.height = Math.random() * ph + 'px';});}aud.addEventListener('timeupdate', () => {update();for (j = 0; j < data.lrcAr.length; j++) {if (aud.currentTime >= data.lrcAr) {if (mKey === j) showLrc(data.lrcAr);else continue;}}});aud.addEventListener('pause', () => mState());aud.addEventListener('play', () => mState());aud.addEventListener('seeked', () => calcKey());let mState = () => aud.paused ? (lrc.style.setProperty('--state', 'paused'), mplayer.style.setProperty('--state', 'paused')) : (lrc.style.setProperty('--state', 'running'), mplayer.style.setProperty('--state', 'running'));let showLrc = (time) => {let name = mFlag ? 'cover1' : 'cover2';lrc.innerHTML = data.lrcAr;lrc.dataset.lrc = data.lrcAr.replace(/<br>/, '\n');lrc.style.setProperty('--motion', name);lrc.style.setProperty('--tt', time + 's');lrc.style.setProperty('--state', 'running');mKey += 1;mFlag = !mFlag;};let calcKey = () => {for (j = 0; j < data.lrcAr.length; j++) {if (aud.currentTime <= data.lrcAr) {mKey = j - 1;break;}}if (mKey < 0) mKey = 0;if (mKey > data.lrcAr.length - 1) mKey = data.lrcAr.length - 1;let time = data.lrcAr - (aud.currentTime - data.lrcAr);showLrc(time);};};mkPlayer.HCPlayer = playCode;})(this);
        let ar= [
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
       
];
        HCPlayer({
                lrcAr: ar,
                lrc_css: 'left:185px; top: 525px; --bg: linear-gradient(180deg,hsla(120,100%,50%,.35),hsla(120,50%, 35%,.65));',
                player_css: '--ww:240px; --hh:120px; left: 565px; bottom: 60px;',
        });

        let fs = false, timerId;
        btnMsg.style.opacity = '0';
        btnMsg.onclick = () => fs ? document.exitFullscreen() : papa.requestFullscreen();
        papa.onmousemove = () => {
                clearTimeout(timerId);
                btnMsg.style.opacity = '.95';
                timerId = setTimeout('btnMsg.style.opacity = "0"',3000);
        };
        document.addEventListener("fullscreenchange", () => {
                if(document.fullscreenElement !== null) {
                        fs = true;
                        btnMsg.innerText = '退出全屏';
                } else {
                        fs = false;
                        btnMsg.innerText = '全屏观赏';
                }
        });
})();
</script></td></tr></table>

罗浮梦 发表于 2023-5-4 17:30

真好看的画面。

罗浮梦 发表于 2023-5-4 17:31

聆听中{:4_204:}

小辣椒 发表于 2023-5-4 20:24

问好有声有色{:4_187:}

感觉你特别喜欢评弹这个戏剧

小辣椒 发表于 2023-5-4 20:25

谢谢分享,制作辛苦,这个评弹的还是动图,会弹琴的{:4_199:}

梦缘 发表于 2023-5-4 20:32

欣赏老师的精彩分享,点赞!{:4_178:}

有声有色 发表于 2023-5-5 07:05

罗浮梦 发表于 2023-5-4 17:30
真好看的画面。

谢谢鼓励

有声有色 发表于 2023-5-5 07:11

小辣椒 发表于 2023-5-4 20:24
问好有声有色

感觉你特别喜欢评弹这个戏剧

是的从小就生长在这环境里,后来文化大革命了这些才子佳人都受到了批判,69年上山下乡去了内蒙。一去就是十年。

有声有色 发表于 2023-5-5 07:12

小辣椒 发表于 2023-5-4 20:25
谢谢分享,制作辛苦,这个评弹的还是动图,会弹琴的

这是用PS软件在图片上添加了一张动图

有声有色 发表于 2023-5-5 07:13

梦缘 发表于 2023-5-4 20:32
欣赏老师的精彩分享,点赞!

谢谢鼓励

红影 发表于 2023-5-5 10:53

这画面真漂亮。这些歌词又是有声有色老师自己听出来做上去的吧,真不容易。{:4_199:}

有声有色 发表于 2023-5-5 13:24

红影 发表于 2023-5-5 10:53
这画面真漂亮。这些歌词又是有声有色老师自己听出来做上去的吧,真不容易。

是的,在网上找的,几个视频拼凑在一起,现在听起来好像这段歌词基本上差不多。

红影 发表于 2023-5-5 15:27

有声有色 发表于 2023-5-5 13:24
是的,在网上找的,几个视频拼凑在一起,现在听起来好像这段歌词基本上差不多。

您是对评弹真正喜爱之人,并用自己的双手,让它发扬光大呢{:4_187:}
页: [1]
查看完整版本: 评弹西厢记——红娘问病