许你——程响(学习黑师护网&字符&九连小播效果)
<style>#papa {margin: 0 0 0 calc(50% - 593px);
width: 1024px;
height: 640px;
background: tan url('https://s1.ax1x.com/2023/06/04/pC9aDKI.jpg');
box-shadow: 0 0 8px #000;
display: grid;
place-items: center;
position: relative;
overflow: hidden;
--state: paused;
}
#vid {
position: absolute;
width: 1400px;
height: 100%;
border-radius: 2%;
opacity: .76;
object-fit: cover;
pointer-events: none;
mix-blend-mode: screen;
}
css-doodle { position: absolute; }</style><div id="papa"><!-- 播放器 --><css-doodle grid="1" id="mplayer">:doodle {@size: 190px;position: relative;cursor: pointer; left: 410px; top: 120px; z-index: 10;}background: @doodle( :doodle { @grid: 3 ; @size: 190px; background: radial-gradient(DarkCyan,transparent 70%,transparent 0); cursor: pointer; } clip-path: @shape( points: 400;scale: .7;frame: 40;r: abs.cos(9t) ^ cos(9t);); @place: center; background: Peru; transform: rotate(calc(@i * 40deg)) translate(60px););animation: rot 6s infinite linear var(--state); @keyframes rot { to { transform: rotate(1turn); } } </css-doodle><css-doodle grid="2"> :doodle { @size: 1024px 640px; background:url('') no-repeat center/cover; position: relative; opacity: .95; } @nth(1) { @size: 100%; position: absolute; background-image: @svg( viewBox: 0 0 10 10; stroke: rgba(230,230,250,.45); stroke-width: .01; stroke-linecap: round; line*20x20 { x1, y1, x2, y2: @p( @nx(-26) @ny(-2) @nx @ny, @nx @ny(-3) @nx(-4) @ny, @nx @ny(-24) @nx @ny ); } ); } @nth(@size) { @size: 1024px; @place: 50% 600px; font-size: 22px; :after { content: '꧁༺❀༒ൢ❀༻꧂꧁༺❀ൢ༒ൢ❀༻꧂꧁༺❀ൢ༒ൢ❀༻꧂꧁༺❀ൢ༒ൢ❀༻꧂꧁༺❀༒ൢ❀༻꧂';} } @keyframes rot { to { transform: rotate(360deg); } } </css-doodle><!-- 文本 --><css-doodle grid="8x6" click-to-update="">:doodle {@size: 620px 240px;left: 40px;bottom: 60px;cursor: pointer;z-index: 3;}@size: 50px;@place: calc(@col * 40px - 20px) calc(@row * 40px - 20px);font: normal 26px / 30px sans-serif;color:black;text-shadow: 1px 1px 2px #000;opacity: 0;:before {content: @pn([《春燕》檐前日暖翩翩过,帘外风轻对对斜。偏是社来还社去,年年不见腊梅花。]);}animation: show .3s calc((@i - 1) * .3s) linear forwards var(--state);@keyframes show { to { opacity: 1; } }</css-doodle><css-doodle id="lrc"> :doodle { @size: auto 4em; bottom: 10px; --geci: "css-doodle player"; --motion: cover2; --tt: 1s; } /* 单元格两个伪元素显示lrc歌词 */ display: grid; place-items: center start; :before, :after { content: var(--geci); color:AntiqueWhite; /* 歌词底色 */ font: bold 1em sans-serif; text-shadow: 1px 1px 2px #000; white-space: pre; } :after { position: absolute; width: 0; color: Tan; /* 同步歌词颜色 */ overflow: hidden; animation: var(--motion) var(--tt) linear forwards var(--state); } @keyframes cover1 { from { width: 0; } to { width: 100%; } } @keyframes cover2 { from { width: 0; } to { width: 100%; } } </css-doodle><video id="vid" src="https://img.tukuppt.com/video_show/6181262/01/28/52/6291f470c613a.mp4" autoplay="" loop="" muted=""></video><audio id="aud" src="https://music.163.com/song/media/outer/url?id=1905106740" autoplay="autoplay" loop="loop"></audio></div><script>(function() {
let script = document.createElement('script');
script.src = 'https://638183.freep.cn/638183/web/api/css-doodle.js';
document.head.appendChild(script);
let slip = 0.5, mFlag = true, mKey = 0, clickIdx = 0, progChg = 0, cursors = ['default','pointer','pointer'];
let lrcAr = [
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
];
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 time = lrcAr - (aud.currentTime - lrcAr);showLrc(time);};
let mState = () => papa.style.setProperty('--state', aud.paused ? 'paused' : 'running');
let showLrc = (time) => {lrc.style.setProperty('--motion', mFlag ? 'cover1' : 'cover2');lrc.style.setProperty('--geci', '"' + lrcAr + '"');lrc.style.setProperty('--tt', time + 's');mKey += 1;mFlag = !mFlag;};
aud.addEventListener('play', mState, false);
aud.addEventListener('pause', mState, false);
aud.addEventListener('timeupdate', () => {for (j = 0; j < lrcAr.length; j++) {if (aud.currentTime - slip >= lrcAr) {cKey = j;if (mKey === j) showLrc(lrcAr);else continue;}}mplayer.style.setProperty('--ttmsg1', `'${toMin(aud.currentTime)}'`);mplayer.style.setProperty('--ttmsg2', `'${toMin(aud.duration)}'`);mplayer.style.setProperty('--prog',`${100 * aud.currentTime / aud.duration}%`);});
mplayer.onclick = () => aud.paused ? aud.play() : aud.pause();
})();</script> @马黑黑 老师快来看看,终于整出来了{:4_170:} 南无月 发表于 2023-6-4 21:58
@马黑黑 老师快来看看,终于整出来了
很漂酿的样纸 思路:
本来是跟老师的六一贴《我们的世界》,有护网,改了一些,象是PS的滤镜效果。。看上去还算满意。
下面的字符改成一串比较花哨的小花边。。
七个风车改成一个,放在扇子旁边。
都做得差不多了。看到那个小播在人脸旁边转呀转,象风扇,又象是刀削面,觉得不妥当,就想换一个。
重新做,因为那个九连播的看着挺好看,就换了个图案,开始也跟水芙蓉一样,歌词跟着转,后来重新整合,单独整一个,就好了。。。
音乐依然难找,程响的歌听过一次,随意找一首放上来,果然听起来不错。。。。
今日作业完成。。。 这个厉害了,月儿把黑黑最近弄的新效果都集中在了一起,做的非常漂亮{:4_199:} 九连小播的背景色也取得跟美女的旗袍一个色系的,护网在这里也很漂亮呢。月儿太厉害了{:4_187:} css-doodle提出的艺术追求在这个帖子得到完美呈现 鼓掌! 欣赏美帖。收藏了!{:4_187:} 多种综合元素的无用,简直太漂亮了,青快突破蓝了。太厉害了。{:4_173:} 做艳丽花稍容易,做出意境就不是一般水平了。 整得好皮实,真好看好听。{:4_204:} 月儿的背景图选的漂亮,{:4_187:} 添加的元素烘托了气氛,图图生动了起来,高手哦{:4_187:} 千羽 发表于 2023-6-5 20:12
添加的元素烘托了气氛,图图生动了起来,高手哦
千羽来了,开心,抱一个。。{:4_183:} 千羽 发表于 2023-6-5 20:10
月儿的背景图选的漂亮,
看到这个古风图就想说得把它变成贴子。哈哈。。 醉美水芙蓉 发表于 2023-6-5 18:13
月儿真厉害!这么多效果整一起!佩服!
水芙蓉夸了,开心一下{:4_187:} 梦缘 发表于 2023-6-5 10:18
整得好皮实,真好看好听。
感谢临帖支持 樵歌 发表于 2023-6-5 07:10
做艳丽花稍容易,做出意境就不是一般水平了。
感谢樵管支持鼓励{:4_187:}