枕着光的她
<style type="text/css">#papa { margin: 180px -140px ; width: 1164px; height: 640px; background:#000 url('') no-repeat center/cover; box-shadow: 0px 0px 0px 2px #cccccc, 0px 0px 0px 10px #880000; position: relative; display: grid; place-items: center; z-index: 10000; overflow:hidden;transform:rotateX(0deg) scale(1)}
#papa:hover #fullscreen { display:block ;}
#fullscreen { position: absolute; top:4%; left:85%;color:#000;font: normal 2em楷体; opacity: 1; cursor: pointer; z-index: 10}
#mdiv {top:12%; left:85%;cursor: pointer;width:120px;height: 120px;animation:rot 10s linear infinite;position: absolute;filter:drop-shadow(#000 0px 0 1px);z-index: 40;}
@keyframes rot { to { transform: rotate(2turn);} }
.photo {width: 100%;height: 100%;box-shadow: 0px 0px 0px 1px #000, 0px 0px 0px 4px #fff;position: absolute;z-index: -2;top:0%; left:0%;
opacity: 0;animation: round 48s linear infinite;}
@keyframes round {0% {opacity: 0;transform:translate(0%,0%)scale(1)}
8% {opacity: 1;transform:translate(0%,0%)scale(1)}
15% {opacity: 1;transform:translate(0%,0%)scale(3)}
18% {opacity: 0;transform:translate(0%,0%)rotate(0deg)scale(3)}}
.photo:nth-child(1) {background:#000 url(http://qslt.net/data/attachment/forum/202410/26/%E4%BC%A0%E5%9B%BE%E8%AF%95%E5%B8%96/105740nehpmld8stelsomm.jpg)no-repeat center/cover;
animation-delay: 42s;}
.photo:nth-child(2) {background:#000 url(http://qslt.net/data/attachment/forum/202410/25/%E4%BC%A0%E5%9B%BE%E8%AF%95%E5%B8%96/220042ej8zv8v4m844mnz3.jpg)no-repeat center/cover;
animation-delay: 36s;}
.photo:nth-child(3) {background:#000 url(http://qslt.net/data/attachment/forum/202410/21/%E4%BC%A0%E5%9B%BE%E8%AF%95%E5%B8%96/092548p4xe1te4kqqtt6kt.jpg)no-repeat center/cover;
animation-delay: 30s;}
.photo:nth-child(4) {background:#000 url(http://qslt.net/data/attachment/forum/202410/19/%E4%BC%A0%E5%9B%BE%E8%AF%95%E5%B8%96/104738ja4n0e0olx0soll4.jpg)no-repeat center/cover;
animation-delay: 24s;}
.photo:nth-child(5) {background:#000 url(http://qslt.net/data/attachment/forum/202410/18/%E4%BC%A0%E5%9B%BE%E8%AF%95%E5%B8%96/100258xio4pinx4exdvwwx.jpg)no-repeat center/cover;
animation-delay: 18s;}
.photo:nth-child(6) { background:#000 url(http://qslt.net/data/attachment/forum/202410/11/153843ke0e0u0feqx7m8po.jpg)no-repeat center/cover;
animation-delay: 12s;}
.photo:nth-child(7) { background:#000 url(http://qslt.net/data/attachment/forum/202410/02/181536y5usjsyssfrusyy4.jpg)no-repeat center/cover;
animation-delay: 6s;}
.photo:nth-child(8) { background:#000 url(http://qslt.net/data/attachment/forum/202408/24/001554j1nupynu9skna5y5.jpg)no-repeat center/cover;
animation-delay: 0s;}
.stop .photo:nth-child(1),.stop .photo:nth-child(2),.stop .photo:nth-child(3),.stop .photo:nth-child(4),.stop .photo:nth-child(5),.stop .photo:nth-child(6),.stop .photo:nth-child(7),.stop .photo:nth-child(7),
.stop .photo:nth-child(8) {animation-play-state: paused;}
</style>
<style type="text/css">.set {
position: absolute;z-index: 1;
width: 100%;
height: 100%;
top: 0;
left: 0;}
.set div {
position: absolute;
display: block;
user-select: none;}
.set div img {pointer-events: none;
max-width: 90px;
max-height: 120px;}
.set div:nth-child(1) {
left: 20%;
animation: animate 15s linear infinite;
animation-delay: -7s;}
.set div:nth-child(2) {
left: 50%;
animation: animate 20s linear infinite;
animation-delay: -5s;}
.set div:nth-child(2) {
left: 50%;
animation: animate 20s linear infinite;
animation-delay: -5s;}
.set div:nth-child(3) {
left: 70%;
animation: animate 25s linear infinite;}
.set div:nth-child(4) {
left: 0%;
animation: animate 15s linear infinite;
animation-delay: -5s;}
.set div:nth-child(5) {
left: 85%;
animation: animate 18s linear infinite;
animation-delay: -10s;}
.set div:nth-child(6) {
left: 15%;
animation: animate 12s linear infinite;
animation-delay: -7s;}
.set div:nth-child(7) {
left: 60%;
animation: animate 14s linear infinite;
animation-delay: -7s;}
.stop .set div:nth-child(1),.stop .set div:nth-child(2),.stop .set div:nth-child(3),.stop .set div:nth-child(4),.stop .set div:nth-child(5),.stop .set div:nth-child(6),.stop .set div:nth-child(7){animation-play-state: paused;}
@keyframes animate {
0% {opacity: 0;top: -10%;transform: translateX(20px) rotate(0deg);}
10% {opacity: 1;}
20% { transform: translateX(-20px) rotate(45deg);}
40% {transform: translateX(-20px) rotate(90deg);}
60% {transform: translateX(-20px) rotate(135deg);}
80% {transform: translateX(-20px) rotate(180deg);}
100% {top: 110%;transform: translateX(-20px) rotate(225deg);}}
.set2 { transform: scale(2) rotateY(0deg); filter: blur(4px);}
.set3 { transform: scale(0.8) rotateY(3deg);filter: blur(6px);}
.lrc{z-index: 10;width: 90%;height: 180px;overflow: hidden;filter:drop-shadow(#ccc 1px 0 0)drop-shadow(#ccc 0 1px 0)drop-shadow(#ccc -1px 0 0) drop-shadow(#ccc 0 -1px0);display: block;position: absolute;top:85%; left:5%; margin: 0 auto;}
.lrc #ullrc{width: 100%;padding: 0;list-style: none;transition: 0.3s all ease; margin: 0;}
/*歌词普通样式*/
.lrc #ullrc li{height: 70px;line-height: 60px;font-family:华文隶书; font-size: 0px; color: #000078; font-weight: normal; transition: .3s all ease;list-style-type: none; text-align: center;display: block;width: 100%;margin: 0 auto;}
/*动态歌词样式*/.lrc #ullrc li.active{ font-size: 44px;color: #800080;text-align: center;}
#wzsd1 { animation: wzsd 0.56s linear infinite ;}
@keyframes wzsd {
from {opacity: 1;filter:hue-rotate(360deg)contrast(180%)brightness(200%);}
50% {opacity: 1;}
to {opacity: 1;filter:hue-rotate(0deg)contrast(140%)brightness(100%);}}
</style>
<div id="papa">
<audio autoplay="" id="aud" loop="" src="https://cccimg.com/view.php/411c9148f99b0432a060ea5e1160dbd8.mp3"> </audio>
<span id="fullscreen">全屏观赏</span>
<img id="mdiv"src="https://pic.imgdb.cn/item/671d8801d29ded1a8cbb3fa7.png">
<div id="testImg">
<div class="photo"></div><div class="photo"></div><div class="photo"></div><div class="photo"></div><div class="photo"></div><div class="photo"></div><div class="photo"></div><div class="photo"></div>
<div class="set">
<div><img alt="" src="https://pic.imgdb.cn/item/67220d84d29ded1a8c493f87.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67220dc5d29ded1a8c499cae.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67220de7d29ded1a8c49cdd9.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/6722130ed29ded1a8c52391c.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/65bf4406871b83018a08c712.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/65bf43a3871b83018a072c52.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67221191d29ded1a8c4f4e65.png" /></div>
</div>
<div class="set set2">
<div><img alt="" src="https://pic.imgdb.cn/item/67220d84d29ded1a8c493f87.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67220dc5d29ded1a8c499cae.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67220de7d29ded1a8c49cdd9.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/6722130ed29ded1a8c52391c.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/65bf4406871b83018a08c712.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/65bf43a3871b83018a072c52.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67221191d29ded1a8c4f4e65.png" /></div>
</div>
<div class="set set3">
<div><img alt="" src="https://pic.imgdb.cn/item/67220d84d29ded1a8c493f87.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67220dc5d29ded1a8c499cae.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67220de7d29ded1a8c49cdd9.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/6722130ed29ded1a8c52391c.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/65bf4406871b83018a08c712.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/65bf43a3871b83018a072c52.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67221191d29ded1a8c4f4e65.png" /></div>
</div>
</div>
<divclass="lrc" ><div id="wzsd1"><ul id="ullrc"></ul></div>
</div>
</div>
<script>
var image= document.getElementById("testImg");
mdiv.onclick = () => aud.paused ? (aud.play(),image.classList.remove('stop')): (aud.pause(),image.classList.add('stop'));
aud.addEventListener('playing', () =>mdiv.style.animationPlayState = 'running');
aud.addEventListener('pause', () =>mdiv.style.animationPlayState = 'paused');
/*歌词特效*/
wzsd1.style.animationPlayState = aud.paused ? 'paused' : 'running';
aud.addEventListener('playing', () => wzsd1.style.animationPlayState = 'running');
aud.addEventListener('pause', () => wzsd1.style.animationPlayState = 'paused');
let fs = true;
fullscreen.onclick = () => {
fs ? (fullscreen.innerText = '退出全屏', papa.requestFullscreen()) : (fullscreen.innerText = '全屏欣赏', document.exitFullscreen());
fs = !fs;
};
</script>
<script >
var lrc = `枕着光的她 - 任素汐
词:易家扬/临渡/赵棠舟
曲:任素汐
编曲:刘鑫磊
制作人:刘鑫磊
吉他/贝斯:许俊豪
和声编写:漆柚
和声:任素汐
配唱制作人:刘鑫磊
伴唱:漆柚
弦乐监制:李朋
音频编辑:刘鑫磊/漆柚
人声录音师:刘鑫磊
LRC编辑:醉美水芙蓉
出品人:陈默
透过窗看一幕童话
枕着光芒的云下
晚风轻轻地吹过她的银发
他笑着等她一起慢慢走回家
幸福有时候不说话
总在平凡里发着芽
就算日子偶尔有伤疤
也能从里面长出新枝桠 对吗
枕着光的她往前走
路上难免风吹雨打
叫上一声老伴啊 便有人应答
她就晓得 到了家
等到岁月把皱纹缝成一朵花
他们挽着手把生活过成一幅画
可能她一千帧的芳华
都绣在了心里吧
陪伴是回答
他婚礼上对她说别哭
他病中对她说别哭
爱是两个小人儿遇上
都在努力给对方 照个亮
等到岁月把皱纹缝成一朵花
他们挽着手把生活过成一幅画
可能她一千帧的芳华
都绣在了心里吧
枕着光的路上有个他 不怕
谢谢欣赏!
`;
function $(id) {return document.getElementById(id);
}//这样写以后getid方便
function getLrcArray() {
var parts = lrc.split("\n");
for (let index = 0; index < parts.length; index++) {
parts = getLrcObj(parts);
}
return parts;
function getLrcObj(content) {
var twoParts = content.split("]");
var time = twoParts.substr(1);
var timeParts = time.split(":");
var seconds = +timeParts;
var min = +timeParts;
seconds = min * 60 + seconds;
var words = twoParts;
return{
seconds: seconds,
words: words,
};
}
}
var lrcArray = getLrcArray();
function inputLrc() {
for (let index = 0; index < lrcArray.length; index++) {
var li = document.createElement("li");
li.innerText = lrcArray.words;
$("ullrc").appendChild(li);
}
}
inputLrc();
function setPosition() {
var index = getLrcIndex();
if (index == -1) {
return;
}
var lrc_li_height = 70, lrc_ul_height = 60;
var top = index * lrc_li_height + lrc_li_height / 2 - lrc_ul_height / 2;
if (top < 0) {top = 0;}$("ullrc").style.marginTop = -top + "px";
var activeLi = $("ullrc").querySelector(".active");
if(activeLi){
activeLi.classList.remove("active");}
$("ullrc").children.classList.add("active");
}
var turn = 0;
function getLrcIndex(){
var time = $("aud").currentTime + turn;for (var index = 0; index < lrcArray.length; index++) {
if (lrcArray.seconds > time) {
return index - 1;
}
}
}
$("aud").ontimeupdate = setPosition;
</script>
这个作品漂亮!!!! 这个作品漂亮!!!! 看帖子的要发表下看法
页:
[1]