恭贺中秋
<style>
#papa { left: -250px; width: 1100px; height: 700px; background: #333 url('https://pic.imgdb.cn/item/63196ea416f2c2beb1e44a9a.jpg') no-repeat center/cover; box-shadow: 4px 4px 24px #000; position: relative; }
#papa input { border: none; outline: none; opacity: .75; cursor: pointer; }
#papa p { margin: 0; padding: 0; }
.vid { position: absolute;LEFT: -200px; width: 600px; height: 580px; object-fit: cover; opacity: 0.9; clip-path: circle(80% at bottom) ;mix-blend-mode: exclusion;}
#circle { left: 450px; top: 50px; width: 240px; height: 240px; border-radius: 50%; position: absolute; }
.star { position: absolute; width: 2px; height: 2px; background: #fff; }
@keyframes flash { to { opacity: 0; } }
</style>
<div id="papa">
<div id="circle"></div>
<video class="vid" style="position: relative; LEFT: 0px; TOP: 0px" src="https://img.tukuppt.com/video_show/15653652/00/20/68/5f34937c56be8.mp4" autoplay="autoplay" loop="loop" muted="muted"></video>
</p>
</div>
</div>
<audio id="aud" src="http://music.163.com/song/media/outer/url?id=1965528412.mp3" autoplay="autoplay" loop="loop"></audio>
<script>
let slip = 0, idx = 0, total = 500, gap = 100;
let add = setInterval(addDot, gap), del;
let num = (min, max) => Math.floor(Math.random() * (max-min+1)) + min;
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 = (val) => {
if(!val) return '0:0';
val = Math.floor(val);
return parseInt(val / 60) + ':' +parseFloat(val % 60);
}
function addDot() {
let ele = document.createElement('span');
let ww = circle.offsetWidth / 2;
ele.className = 'star';
ele.style.animation = 'flash ' + 0.1 * num(10,50) + 's infinite';
let pos = calcCirclePos({x: ww, y: ww, r: num(0,ww - 2), a: num(0,360)});
ele.style.left = pos.xx + 'px';
ele.style.top = pos.yy + 'px';
circle.appendChild(ele);
idx ++;
if(idx >= total){
clearInterval(add);
idx = 0;
del = setInterval(delDot, gap);
}
}
function delDot() {
let ele = document.querySelector('.star');
if(ele) {
circle.removeChild(ele);
} else {
clearInterval(del);
add = setInterval(addDot,gap);
}
}
function calcCirclePos({x,y,r,a}) {
let xx = x + r * Math.cos((a * Math.PI) / 180);
let yy = y + r * Math.sin((a * Math.PI) / 180);
return {xx,yy};
}
</script>
好美的贺帖,欣赏问好老师!{:4_204:} 祝清舟朋友中秋节快乐,花潮朋友们中秋节快乐! 清舟把几个效果都糅合在帖子里了,这个贺帖做得真漂亮。借清舟好帖祝大家中秋快乐{:4_187:} 这些字体好漂亮,无论是图片上的字体还是动态字体,找到这些字体不容易呢{:4_199:} 清舟这个视频素材漂亮{:4_178:}
清舟特别能干,每个图图都是特别的别致,发现清舟脑子特别灵{:4_170:}
重要的说三遍----特别 棒! 中秋快乐 梦缘 发表于 2022-9-8 16:51
好美的贺帖,欣赏问好老师!
谢谢梦缘,预祝节日快乐,安康 梦油 发表于 2022-9-8 17:36
祝清舟朋友中秋节快乐,花潮朋友们中秋节快乐!
谢谢梦油,也祝你节日快乐,幸福安康 红影 发表于 2022-9-8 19:43
这些字体好漂亮,无论是图片上的字体还是动态字体,找到这些字体不容易呢
那天翻视频正好看到有不少字动态的就找着了 小辣椒 发表于 2022-9-8 20:16
清舟这个视频素材漂亮
里面字幕的素材还不少的呢 马黑黑 发表于 2022-9-8 20:22
中秋快乐
天天快乐{:4_189:} 小辣椒 发表于 2022-9-8 20:18
清舟特别能干,每个图图都是特别的别致,发现清舟脑子特别灵
重要的说三遍----特别 棒!
脑子特别材料的吧{:4_189:} 绿叶清舟 发表于 2022-9-8 21:27
天天快乐
乐乐也好 绿叶清舟 发表于 2022-9-8 21:15
谢谢梦油,也祝你节日快乐,幸福安康
你喜欢吃啥馅的月饼啊? 梦油 发表于 2022-9-9 09:34
你喜欢吃啥馅的月饼啊?
以前最喜欢的是莲蓉的,现在啥都无所谓只尝一小块应个节了 绿叶清舟 发表于 2022-9-9 11:46
以前最喜欢的是莲蓉的,现在啥都无所谓只尝一小块应个节了
现在的月饼太甜,太油。 绿叶清舟 发表于 2022-9-8 21:17
那天翻视频正好看到有不少字动态的就找着了
还以为是动图呢,原来是视频,真不错啊,效果特别好呢{:4_199:} 梦油 发表于 2022-9-9 14:43
现在的月饼太甜,太油。
是啊,收到月饼都是赶紧的往外送了,不象以前看到月饼那个高兴得