“渡情” 帖赠:风中飞尘
<style>#papa { left: -410px; width: 1400px; height: 750px; top:150px;background:url('https://wj.zp68.com/lxx/yunhua/2022/11/02/GIF.jpg')0 0/100% 100%;display: grid;center/cover; box-shadow: 3px 3px 20px #000; position: relative; display: grid; place-items: center; user-select: none; overflow: hidden; z-index: 1; --opt: .25; }
#btnplay {position: absolute;
width: 1400px;
height: 710px;
left: 0px;
bottom: 0px;
-border: 2px solid #000000;
background: url('https://wj.zp68.com/lxx/yunhua/2022/11/02/sx.png')0 0/100% 100%;
mask: radial-gradient(transparent 7px,#red 0);
-webkit-mask: radial-gradient(transparent 7px,red 0);
-border-radius: 50%;
cursor: pointer;
-animation: rot 4s linear infinite;
-z-index: 0;
-transform: rotateX(45deg) rotateY(20deg) rotate(0deg);}
#lrc { --motion: cover1; --tt: 1s; --state: paused; position: absolute; top: 100px;left: 700px;color: #000080; font-family: 汉仪雪峰体简;
font-size: 45px;-webkit-background-clip: text; filter: drop-shadow(#ffffff 2px 0 0)drop-shadow(#ffffff 0 2px 0)drop-shadow(#ffffff -2px 0 0) drop-shadow(#ffffff 0 -2px0); }
#lrc::before { position: absolute; content: attr(data-lrc); width: 20%; height: 100%; color: transparent; overflow: hidden; white-space: nowrap;background: repeating-linear-gradient(275deg, #fec108 0%,#6003fa 100%);-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%; } }
#tx { position: absolute;
top: 0px;
left: 0px;
width: 200px;
height: 700px;
animation: tx 0.25s linear infinite;
cursor: pointer;
opacity: 1; }
@keyframes tx {
to {filter:hue-rotate(360deg)contrast(100%)brightness(150%);}
}
</style>
<style>
.img_border{display:inline-block;width:1400px;height:750px;margin:0px ;position: absolute;}
.img_border #aplay{border:1px solid #000000;border-radius:0%; }
.z360z{animation: rotating 0s linear infinite;background:url('https://wj.zp68.com/lxx/yunhua/2022/11/02/GIF.gif')0 0/100%100%;}@keyframes rotating{from {filter:hue-rotate(0deg)contrast(120%)brightness(110%);}to {filter:hue-rotate(60deg)contrast(110%)brightness(100%);}}
</style>
<div id="papa"><div id="tx">
<div class="img_border" id="aplay" style="width: 1400px; height: 750px;position: absolute;">
<img id="tupian" style="width: 100%; height: 100%;background: url()0 0/100% 100%"></div></div>
<span id="btnplay" style="animation-play-state: running;"></span>
<span id="lrc" data-lrc="花潮lrc在线" style="--state:running; --motion:cover1; --tt:9.1s;">花潮lrc在线 </span>
</div>
<audio id="aud" src="https://wj.zp68.com/lxx/yunhua/2022/11/02/dq.mp3" autoplay="autoplay"></audio>
<script>
(function() {
let mKey = 0, mFlag = true, slip = 0.0;
let lrcAr = [
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
];
aud.loop = false;
btnplay.onclick = () => aud.paused ? aud.play() : aud.pause();
aud.addEventListener('pause', () => mState());
aud.addEventListener('play', () => mState());
aud.addEventListener('ended', () => { mKey = 0; aud.play(); });
aud.addEventListener('timeupdate', () => {
for (j = 0; j < lrcAr.length; j++) {
if (aud.currentTime - slip >= lrcAr) {
if (mKey === j) showLrc(lrcAr);
else continue;
}
}
});
let mState = () => aud.paused ? (btnplay.style.animationPlayState = 'paused', lrc.style.setProperty('--state', 'paused')) : (btnplay.style.animationPlayState = 'running',
lrc.style.setProperty('--state', 'running'));
let showLrc = (time) => {
let name = mFlag ? 'cover1' : 'cover2';
lrc.innerHTML = lrc.dataset.lrc = lrcAr;
lrc.style.setProperty('--motion', name);
lrc.style.setProperty('--tt', time + 's');
lrc.style.setProperty('--state', 'running');
mKey += 1;
mFlag = !mFlag;
};
})();
</script>
<script type="text/javascript">
var my_audio =document.getElementById("aud");my_audio.onended = function(){document.getElementById("aplay").className="";};my_audio.onplaying = function(){document.getElementById("aplay").className="z360z";};my_audio.onpause = function(){document.getElementById("aplay").className="";};var lyric = parseLyric(songkrc); </script>
<br></div><br><br><br><br><br><br><br><br><br><br><br>
@风中飞尘 在今天这个特殊的日子里,小辣椒送上真挚的祝福,小风祝你一切顺顺利利,幸福安康! 渡情,很熟悉的曲子。风中飞尘快来跟菇凉跳舞{:4_170:} 马黑黑 发表于 2022-11-2 21:27
渡情,很熟悉的曲子。风中飞尘快来跟菇凉跳舞
哈哈···黑黑我做了纯音乐,这样就没有歌词上去,自己瞎写几句{:4_170:} 小辣椒 发表于 2022-11-2 21:30
哈哈···黑黑我做了纯音乐,这样就没有歌词上去,自己瞎写几句
很好的 马黑黑 发表于 2022-11-2 21:34
很好的
这首纯音也是小风以前发我的,不过他给的是无损,现在我压缩到320KB 漂亮啊,那花还会一朵朵的打开的 绿叶清舟 发表于 2022-11-2 21:38
漂亮啊,那花还会一朵朵的打开的
清舟这个是最近才学会的,点击频谱音乐和频谱停止,再点击一下音乐和频谱出来 小辣椒 发表于 2022-11-2 21:40
清舟这个是最近才学会的,点击频谱音乐和频谱停止,再点击一下音乐和频谱出来
厉害啊,试了随便点一下就都停了 绿叶清舟 发表于 2022-11-2 21:44
厉害啊,试了随便点一下就都停了
就要这个效果,很开心,黑黑前面教的播放器按钮用2个图片的原理启发了我,现在就一个动图,一个jpg切换而成 小辣椒 发表于 2022-11-2 21:47
就要这个效果,很开心,黑黑前面教的播放器按钮用2个图片的原理启发了我,现在就一个动图,一个jpg切换而 ...
按钮还能用二个图片的啊,逃课太多了{:4_189:} 绿叶清舟 发表于 2022-11-2 21:52
按钮还能用二个图片的啊,逃课太多了
按钮一般是3个图片,你忘记了? 这么多动态元素,让帖子充满了热闹和喜悦,点击还能全部停止,亲爱的真漂亮的制作。小风收礼开心{:4_187:} 小辣椒 发表于 2022-11-2 21:53
按钮一般是3个图片,你忘记了?
太久不玩,没记住了{:5_111:} 小辣椒 发表于 2022-11-2 21:36
这首纯音也是小风以前发我的,不过他给的是无损,现在我压缩到320KB
320已经很好了 这个好像我还不会,小辣椒教我{:4_187:} 小风收礼开心 欣赏精美音画佳作!