格桑拉(藏族舞)
本帖最后由 醉美水芙蓉 于 2022-7-13 22:37 编辑 <br /><br /><style>#ma { left: -242px; width: 1080px; height: 608px; background: #000 url('https://s1.ax1x.com/2022/07/13/jWJ76J.jpg') no-repeat; perspective: 1000px; box-shadow: 2px 2px 20px #000; position: relative; }
#circle { position: absolute; width: 100px; height: 100px; top: 10px; right: 10px; border-radius: 50%; background: red linear-gradient(120deg, lightgreen, transparent); mask-image: radial-gradient(circle at 30% 30%,transparent 20%, red); -webkit-mask-image: radial-gradient(circle at 30% 30%,transparent 20%, red); cursor: pointer; z-index: 100; }
#ma input { border: none; outline: none; opacity: .75; cursor: pointer; }
#ma p { margin: 0; padding: 0; }
#playbox { position: absolute; left: 10px; bottom: 10px; padding: 10px; font: normal 1em sans-serif; color: tomato; text-shadow: 1px 1px 1px #000; background: transparent; border-radius: 8px; overflow: hidden; box-shadow: 1px 1px 2px rgba(0,0,0,.15); z-index: 100; }
#playbox::before { position: absolute; content: ''; margin: -20px; left: 0; top: 0; right: 0; bottom: 0; background: rgba(255,255,255,.45); filter: blur(2px); z-index: -1; }
#btnplay { width: 30px; height: 30px; border-radius: 50%; }
#btnplay:hover { background: #aaa; color: #ff0000; }
.pics {position: absolute; width: 256px; box-shadow: inherit; transform-style: preserve-3d; display: none; opacity: .65; transition: all .5s; }
.pics:hover { width: 300px; opacity: 1; cursor: pointer; }
@keyframes drop { from { transform: translateY(10px); } to { transform: translateY(488px); } }
@keyframes up { from { transform: translateY(488px); } to { transform: translateY(10px); } }
</style>
<div id="ma">
<div id="circle"></div>
<div id="playbox">
<p id="geci" style="font-size: 1.2em">格桑拉(藏族舞 中四 三步踩)</p>
<p style="display: flex; align-items: center; gap: 4px; margin-top: 10px;">
<input id="btnplay" type="button" value=">" />
<input id="slider" type="range" min="0" max="100" value="0" />
<span id="per">0%</span>
</p>
</div>
</div>
<audio id="aud" src="https://www.qqmc.com/up/kwlink.php?id=4252389&.mp3" autoplay="autoplay" loop="loop"></audio>
<script>
let flag = 1;slip = 0, idxar = [];
let imgAr = [
'https://s1.ax1x.com/2022/06/12/X2JTNq.jpg',
'https://s1.ax1x.com/2022/06/12/X2Y94x.jpg',
'https://s1.ax1x.com/2022/06/12/X2JoEn.jpg',
'https://s1.ax1x.com/2022/06/12/X2J5Hs.jpg ',
'https://s1.ax1x.com/2022/06/12/X2JWjg.jpg'
];
let lrcAr = [
['0.00','格桑拉(藏族舞 中四 三步踩) - 交谊舞曲'],
['0.08','嘿嘿嘿嘿嘿'],
['3.09','嘿嘿嘿嘿嘿'],
['6.09','嘿嘿嘿嘿嘿'],
['10.01','嘿嘿嘿嘿嘿'],
['20.03','LRC编辑:醉美水芙蓉'],
['27.06','今天我们在一起'],
['30.07','格桑啰'],
['34.01','跳起欢乐的锅庄'],
['37.02','格桑啰'],
['40.02','祝我们大家幸福'],
['43.04','格桑啰'],
['46.04','祝我们大家吉祥'],
['49.07','格桑啰'],
['67.02','今天我们在一起'],
['70.01','格桑啰'],
['76.04','格桑啰'],
['79.06','祝我们大家幸福'],
['82.07','格桑啰'],
['85.09','祝我们大家吉祥'],
['89.00','格桑啰'],
['109.09','格桑啰'],
['112.09','手捧洁白的哈达'],
['116.01','格桑啰'],
['119.02','祝新郎新娘幸福哟'],
['125.05','祝你们相亲相爱'],
['129.04','格桑啰'],
['132.01','嘿嘿嘿嘿嘿'],
['135.00','嘿嘿嘿嘿嘿'],
['138.02','嘿嘿嘿嘿嘿'],
['141.03','嘿嘿嘿嘿嘿'],
['158.09','今天我们在一起格桑啰'],
['169.00','高举醇香的美酒格桑啰'],
['171.03','祝福新郎新娘情意美'],
['177.07','祝愿白发到老格桑里啰'],
['201.06','格桑啰'],
['204.07','手捧洁白的哈达'],
['207.09','格桑啰'],
['210.10','祝新郎新娘幸福哟'],
['217.02','祝你们相亲相爱'],
['223.09','嘿嘿嘿嘿嘿'],
['226.09','嘿嘿嘿嘿嘿'],
['232.10','嘿嘿嘿嘿嘿'],
['244.00','今天我们在一起'],
['250.06','今天我们在一起格桑啰'],
['257.00','高举醇香的美酒格桑啰'],
['263.02','祝福新郎新娘情意美'],
['266.00','格桑啰'],
['269.04','祝愿白发到老格桑里啰'],
['290.03','今天我们在一起'],
['293.03','格桑啰'],
['296.05','跳起欢乐的锅庄'],
['299.06','格桑啰'],
['302.07','祝我们大家幸福'],
['303.00','跳起欢乐的锅庄'],
['306.01','格桑啰'],
['309.01','祝我们大家吉祥'],
['312.02','格桑啰'],
['325.00','嘿嘿嘿嘿嘿'],
['329.08','今天我们在一起'],
['332.08','格桑啰'],
['335.08','手捧洁白的哈达'],
['339.01','格桑啰'],
['342.03','祝新郎新娘幸福哟'],
['348.06','祝你们相亲相爱'],
['351.08','格桑啰'],
['355.00','嘿嘿嘿嘿嘿'],
['358.01','嘿嘿嘿嘿嘿'],
['361.03','嘿嘿嘿嘿嘿'],
['364.04','嘿嘿嘿嘿嘿'],
['382.00','今天我们在一起格桑啰'],
['388.03','高举醇香的美酒格桑啰'],
['394.06','祝福新郎新娘情意美'],
['400.08','祝愿白发到老格桑里啰'],
['421.05','今天我们在一起格桑啰'],
['427.07','唱起吉祥的颂歌格桑啰'],
['434.01','祝我们幸福永久格桑啰'],
['440.04','祝祖国繁荣昌盛格桑里啰'],
['447.04','祝我们幸福永久格桑啰'],
['453.00','祝祖国繁荣昌盛格桑里啰'],
['459.06','嘿嘿嘿嘿嘿'],
['462.06','嘿嘿嘿嘿嘿'],
['465.08','嘿嘿嘿嘿嘿'],
['468.09','嘿嘿嘿嘿嘿'],
['476.04','谢谢欣赏! '],
['836.00','今天我们在一起']
];
let gnum = (min,max) => Math.floor(Math.random()*(max-min+1))+min;
imgAr.forEach((item,key) => {
item = document.createElement('img');
item.className = 'pics';
item.src = imgAr ; + '.jpg';
item.style.left = key * 190 + 30 + 'px';
item.style.top = gnum(40, 200) + 'px';
item.style.transform = 'rotateY(' + gnum(25,45) +'deg)';
item.alt = '';
ma.appendChild(item);
});
circle.onmouseover = () => {
let pics = document.querySelectorAll('.pics')
if(flag == 1) {
circle.style.animation = 'drop .5s forwards ease-in',
pics.forEach((ele) => ele.style.display = 'block');
flag = 0;
} else {
circle.style.animation = 'up .5s forwards ease-out';
pics.forEach((ele) => ele.style.display = 'none');
flag = 1;
}
}
slider.onmousedown = () => aud.pause();
slider.onchange = () => { aud.currentTime = slider.value * aud.duration / 100; aud.play(); }
btnplay.onclick = () => aud.paused ? aud.play() : aud.pause();
aud.addEventListener('playing', () => btnplay.value = '||');
aud.addEventListener('pause', () => btnplay.value = '>');
aud.addEventListener('timeupdate', () => {
let prog = 100 * aud.currentTime / aud.duration;
slider.value = prog;
per.innerText = toMin(aud.currentTime) + ' | ' + toMin(aud.duration);
for(j=0; j<lrcAr.length; j++){
if(aud.currentTime >= lrcAr - slip){
geci.innerHTML = lrcAr;
}
}
});
let toMin = (sec) => {
if(!sec) return '0:00';
sec = parseInt(sec);
return parseInt(sec / 60) + ':' + parseFloat(sec % 60).toString().padStart(2,'0');
}
</script>
水芙蓉辛苦了。制作得真漂亮! 加林森 发表于 2022-7-13 22:49
水芙蓉辛苦了。制作得真漂亮!
队长晚上好!谢谢队长欣赏支持! 这个漂亮!欣赏 马黑黑 发表于 2022-7-13 23:11
这个漂亮!欣赏
谢谢黑黑老师的代码! 醉美水芙蓉 发表于 2022-7-13 23:07
队长晚上好!谢谢队长欣赏支持!
我现在手机在回帖子。 醉美水芙蓉 发表于 2022-7-13 23:12
谢谢黑黑老师的代码!
{:5_108:} 选取的人物和背景真漂亮。{:4_187:}
这首歌曲7分多钟,居然这么长,做歌词要比平常歌曲多花时间了{:4_173:} 图图做得漂亮,里面的小美铝一个比一个的,简直了{:4_182:} 红影 发表于 2022-7-14 08:45
选取的人物和背景真漂亮。
这首歌曲7分多钟,居然这么长,做歌词要比平常歌曲多花时间了{:4_173: ...
歌词有黑黑的代码模版,做起来很快的! 樵歌 发表于 2022-7-14 09:07
图图做得漂亮,里面的小美铝一个比一个的,简直了
谢谢樵歌欣赏点评! 制作得真漂亮!听藏歌让人感觉很舒服! 谢谢水芙蓉好分享! 赞!
{:4_204:}{:4_190:} 醉美水芙蓉 发表于 2022-7-14 11:41
歌词有黑黑的代码模版,做起来很快的!
水芙蓉美女真棒,学得很好呢{:4_187:} 大猫咪 发表于 2022-7-14 12:29
制作得真漂亮!听藏歌让人感觉很舒服! 谢谢水芙蓉好分享! 赞!
喵咪下午好!祝欣赏愉快! 醉美水芙蓉 发表于 2022-7-14 11:42
谢谢樵歌欣赏点评!
再来欣赏{:4_205:}
页:
[1]