《阿果吉曲》海来阿木
本帖最后由 焱鑫磊 于 2023-6-23 13:40 编辑 <br /><br /><style>#papa {
margin: 100px -280px;
width: 1164px;
height: 640px;
box-shadow: 1px 1px 0px #000;
background:lightgreenurl('https://pic.imgdb.cn/item/64952dbd1ddac507cc4bc7f8.jpg')no-repeat center / cover; ;
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: .26;
object-fit: cover;
pointer-events: none;
mix-blend-mode: screen;
}
css-doodle { position: absolute; }
#mydiv {
width: 1164px;
height: 640px;
overflow: hidden;
position: relative;
margin: 30px auto;
--opa1: 0; --opa2: 1; --bgcolor: rgba(255,255,255,.6);
}
.plane {
display: block;
width: 80px;
height: 60px;
left: 20px;
top: 30px;
background: linear-gradient(lightgreen,green,lightgreen);
opacity: .8;
clip-path: polygon(0 0,20% 50%,0 100%,100% 50%);
offset-path: path('M20 30 h1004 30');
offset-distance: 0%;
position: absolute;
animation: fly 40s var(--delay) infinite linear var(--state);
--delay: 0s;
}
.plane:nth-of-type(2),.plane:nth-of-type(4) { --delay: -10s; }
.plane:nth-of-type(3), {
transform: translateY(510px);
opacity: .6;
}
@keyframes fly { to { offset-distance: 100%; } }
</style>
<div id="papa">
<!-- 播放器 -->
<css-doodle grid="1" id="mplayer">
:doodle { @size: 100px; cursor: pointer; right: 455px; top: 510px; opacity: .66;z-index: 4; }
clip-path: @shape(
points: 18;
R: seq(.618, 1, 0);
T: seq(t-.55, t, t);
x: R * cos(T);
y: R * sin(T);
);
background: linear-gradient(lightgreen,green,lightgreen);
animation: rot 6s infinite linear var(--state);
@keyframes rot { to { transform: rotate(360deg); } }
</css-doodle>
<!-- 歌词 -->
<css-doodle id="lrc">
:doodle { @size: auto 4em; z-index:5; top: 520px; left:190px; --geci: " css-doodle player"; --motion: cover2; --tt: 1s; }
display: grid;
place-items: center start;
:before, :after {
content: var(--geci);
color: green;
font: bold 2em sans-serif;
text-shadow: 1px 1px 2px #000;
white-space: pre;
}
:after {
position: absolute;
width: 0;
color:SteelBlue;
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>
<div id="mydiv"><span id="btn"></span><span class="plane"></span><span class="plane"></span><span class="plane"></span><span class="plane"></span></div><video id="vid" src="https://img.tukuppt.com/video_show/2418175/00/01/41/5b42b85fa5edc.mp4" autoplay="" loop="" muted=""></video> <audio id="aud" src="https://www.joy127.com/url/105511.mp3" autoplay="autoplay" loop="loop"></audio>
</div>
<script>(function() {
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 script = document.createElement('script');
script.src = 'https://638183.freep.cn/638183/web/api/css-doodle.js';
document.body.appendChild(script);
//let mState = () => papa.style.setProperty('--state', aud.paused ? 'paused' : 'running');
let mState = () => aud.paused ? (papa.style.setProperty('--state','paused'), vid.pause()) : (papa.style.setProperty('--state','running'), vid.play());
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.onclick = () => aud.paused ? aud.play() : aud.pause();
})();
</script>
好听的歌儿,漂亮的制作。欣赏焱鑫磊好帖{:4_204:} 好美! 欣赏精彩佳作,谢谢分享,点赞!{:4_176:} 问好焱鑫磊,我也是好喜欢这首歌哦{:4_189:} 海来阿木的歌曲我也是做过N次的,视频也是喜欢{:4_189:} 谢谢焱鑫磊的精彩分享{:4_171:} 很漂亮的作品,歌曲好听,欣赏了 美就一个字 红影 发表于 2023-6-23 14:14
好听的歌儿,漂亮的制作。欣赏焱鑫磊好帖
问候红影好!{:4_187:} 小文 发表于 2023-6-23 14:37
好美!
问好小文!{:4_204:} 梦缘 发表于 2023-6-23 17:37
欣赏精彩佳作,谢谢分享,点赞!
问好梦缘!{:4_187:} 小辣椒 发表于 2023-6-23 18:17
问好焱鑫磊,我也是好喜欢这首歌哦
小辣椒晚上好!{:4_187:} 小辣椒 发表于 2023-6-23 18:20
海来阿木的歌曲我也是做过N次的,视频也是喜欢
小辣椒技术全面,学不来呢!{:4_187:} 小辣椒 发表于 2023-6-23 18:21
谢谢焱鑫磊的精彩分享
问候小辣椒好!{:4_204:} 一斛珠 发表于 2023-6-23 18:47
很漂亮的作品,歌曲好听,欣赏了
问候一斛珠好!{:4_187:} 马黑黑 发表于 2023-6-23 19:19
美就一个字
不断向老师学习呢。跟不上节奏!{:4_187:} 焱鑫磊 发表于 2023-6-23 20:51
不断向老师学习呢。跟不上节奏!
{:4_191:} 焱鑫磊 发表于 2023-6-23 20:48
小辣椒晚上好!
焱鑫磊好{:4_187:} 焱鑫磊 发表于 2023-6-23 20:49
小辣椒技术全面,学不来呢!
没有的,小辣椒现在都许多不会的,问一下焱鑫磊,我现在上来少了一点,怎么没有看见亚伦了,好记挂他的
页:
[1]
2