国庆音画《祖国在我心》
本帖最后由 亚伦影音工作室 于 2022-10-1 06:26 编辑 <br /><br /><style>#papa { top: 0px; left: -320px; width: 1224px; height: 2028px; background: rgba(0,0,0,.45) url('http://pan.yinhuabbs.cn/view.php/43430dcc0a30a55bd6e51d0777528ec1.jpg') no-repeat center/cover; box-shadow: 0px 0px 0px 2px #ffffff, 0px 0px 0px 3px #880000;display: grid; place-items: center; overflow: hidden; position: relative; z-index: 1; }
#mplayer { position: absolute; bottom: 0px; width: 300px; height: 80px; user-select: none; display: grid; place-items: center; cursor: pointer; }
#mplayer:hover #btnwrap, #mplayer:hover { transform: translateY(var(--yy)); }
#mplayer:hover #btnwrap { background: linear-gradient(80deg, #2c3e50 25%,#2980b9 75%); border-radius: 0%; opacity: 1; }
#btnwrap, #prog { position: absolute; display: grid; place-items: center; transition: .7s;}
#btnwrap { --yy: 20px; width: 40px; height: 40px;position: absolute;top: 0px; left: 550px; transform: rotate(0deg); border: 1px solid tan; border-radius: 4px; opacity: 0.2; }
#btnplay { width: 20px; height: 20px; transform: translateX(3px); background: #eee; clip-path: polygon(0 0, 0% 100%, 100% 50%); }
#btnpause { width: 2px; height: 20px; border-style: solid; border-width: 0px 4px; border-color: transparent #eee; display: none; }
#prog { --yy: 35px; width: 550px; height: 2px; border-radius: 0px; background: linear-gradient(329deg, #FAA200 25%,#B92929 75%);font: normal 15px / 26px sans-serif; color: #ffffff; text-shadow: 1px 1px 0 #000; opacity: .8; }
#lrcwrap { position: absolute; top: 680px; font-family:华文隶书;font-size: 55px; }
#lrc1, #lrc2 { width: 100%; height: 100%; color: #ffffff; white-space: nowrap; }
#lrc1{ width: 100%; height: 100%; color: #00ff00; white-space: nowrap;filter:drop-shadow(#000000 1px 0 0)drop-shadow(#000000 0 1px 0)drop-shadow(#000000 -1px 0 0) drop-shadow(#000000 0 -1px0);}
#lrc2 { position: absolute; top: 0px; left: 0px; color: #880000; overflow: hidden;filter:drop-shadow(#FFFFFF 1px 0 0)drop-shadow(#FFFFFF 0 1px 0)drop-shadow(#FFFFFF -1px 0 0) drop-shadow(#FFFFFF 0 -1px0); }
#mpic { position: absolute; transform: rotateY(0deg); top: 0px; left: 0px; width: 1024px;height: 600px; animation: rote 80s linear infinite; cursor: pointer;opacity: 1; }
@keyframes rote {
from {background-position:0 0;filter:hue-rotate(360deg)}
to {background-position:-1600px 300px;}
}
#mpic1 { position: absolute; transform: rotateY(0deg); top: 0px; left: 0px; width: 1024px;height: 600px; animation: rotet 100s linear infinite; cursor: pointer; opacity: 1;}
@keyframes rotet {
from {background-position:0 0;filter:hue-rotate(360deg)}
to {background-position:0px -1600px;}
}
@keyframes fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes mov1 { from { width: 0%;} to { width: 100%; } }
@keyframes mov2 { from { width: 0%;} to { width: 100%; } }
#disc { position: absolute; width: 100px; height: 100px; left: 30px; bottom: 0px; border:2px solid #000000;background:url('http://pan.yinhuabbs.cn/view.php/a60d7a6c4172d96080d4e23d80d9af48.png')0 0/100% 100%,conic-gradient(red,orange,yellow,green,teal,blue,#ff0000); 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; transform: rotateX(45deg) rotateY(20deg) rotate(0deg);z-index: 10;}
@keyframes rot {0% {transform: rotateX(45deg) rotateY(20deg) rotateZ(0deg);}
100% {transform: rotateX(45deg) rotateY(20deg) rotateZ(360deg);}
}
#items{ animation: slider 6s linear infinite ; }
@keyframes slider {from {opacity: 1;filter:hue-rotate(360deg)contrast(120%)brightness(100%);}
50% {opacity: 1;}to {opacity: 1;filter:hue-rotate(0deg)contrast(140%)brightness(100%);}}
</style>
<div id="papa" data-lr="no">
<imgid="items" style="width: 1224px; height: 2028px;background:url('http://pan.yinhuabbs.cn/view.php/43430dcc0a30a55bd6e51d0777528ec1.jpg')0 0/100% 100%" >
<imgid="mpic"style="width: 100%; height: 100%;background: url('http://image.hnol.net/c/2022-01/01/20/202201012050163251-5769293.png')0 0/40% 25%" >
<imgid="mpic1"style="width: 100%; height: 100%;background: url('http://image.hnol.net/c/2022-01/01/20/202201012050163251-5769293.png')0 0/40% 25%" >
<div id="lrcwrap">
<span id="lrc1">正在缓冲......</span>
<span id="lrc2">正在缓冲......</span>
</div>
<span id="disc"></span>
<div id="mplayer">
<div id="btnwrap"><span id="btnplay"></span><span id="btnpause"></span><input type="button" id="testBtn" value="."style="position: absolute;border-radius: 0%;width: 40px; height: 40px;-webkit-background-clip : text;z-index: 3;"></div>
<div id="prog">00:00 | 00:00</div>
</div>
</div>
<script>
let mKey = 0, mFlag = true, aud = new Audio();
let lrcAr = [
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
];
aud.src = 'https://www.qqmc.com/mp3/music18173437.mp3';
aud.autoplay = true;
aud.loop = true;
disc.style.animationPlayState = aud.paused ? 'paused' : 'running';
aud.addEventListener('playing', () => disc.style.animationPlayState = 'running');
aud.addEventListener('pause', () => disc.style.animationPlayState = 'paused');
items.style.animationPlayState = aud.paused ? 'paused' : 'running';
aud.addEventListener('playing', () => items.style.animationPlayState = 'running');
aud.addEventListener('pause', () => items.style.animationPlayState = 'paused');
mpic.style.animationPlayState = aud.paused ? 'paused' : 'running';
aud.addEventListener('playing', () => mpic.style.animationPlayState = 'running');
aud.addEventListener('pause', () => mpic.style.animationPlayState = 'paused');
mpic1.style.animationPlayState = aud.paused ? 'paused' : 'running';
aud.addEventListener('playing', () => mpic1.style.animationPlayState = 'running');
aud.addEventListener('pause', () => mpic1.style.animationPlayState = 'paused');
btnwrap.onclick = () => aud.paused ? aud.play() : aud.pause();
prog.onclick = (e) => aud.currentTime = aud.duration * e.offsetX / prog.offsetWidth;
aud.addEventListener('pause', () => mState());
aud.addEventListener('play', () => mState());
aud.addEventListener('seeked', () => calcKey());
aud.addEventListener('timeupdate', () => {
prog.style.background = 'linear-gradient(90deg, orange, purple ' + aud.currentTime / aud.duration * 100 + '%, snow 0)';
prog.innerText = toMin(aud.currentTime) + ' | ' + toMin(aud.duration);
for (j = 0; j < lrcAr.length; j++) {
if (aud.currentTime >= lrcAr) {
if (mKey === j) showLrc(lrcAr);
else continue;
}
}
});
let mState = () => aud.paused ? (btnplay.style.display = 'block', btnpause.style.display = 'none', lrc2.style.animationPlayState = 'paused') : (btnplay.style.display = 'none',
btnpause.style.display = 'block', lrc2.style.animationPlayState = 'running');
let showLrc = (time) => {
lrc2.style.animation = (mFlag ? 'mov1 ' : 'mov2 ') + time + 's linear forwards';
lrc1.innerHTML = lrc2.innerHTML = lrcAr;
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 mtime = lrcAr - (aud.currentTime - lrcAr);
showLrc(mtime);
};
let toMin = (val) => {
if (!val) return '00:00';
val = Math.floor(val);
let min = parseInt(val / 60),
sec = parseFloat(val % 60);
if (min < 10) min = '0' + min;
if (sec < 10) sec = '0' + sec;
return min + ':' + sec;
};
</script>
祝福祖国,明天更美好 炫目的美 这是大型作品。资源的加载偏慢。祝节日快乐。 很大气漂亮的制作。同祝祖国73周年华诞{:4_177:}{:4_187:} 呵呵,电脑配置太低、宽带太小,打不开,看不到内容!祝大家国庆节快乐! 欣赏音画佳作!祝国庆节快乐! 佳节快乐~~~漂亮的变色及粒子效果!{:4_199:}
页:
[1]