请马上登录,朋友们都在花潮里等着你哦:)
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 醉美水芙蓉 于 2023-6-11 22:23 编辑
:doodle {
@size: 1364px 909px;
background: url('https://pic.imgdb.cn/item/6485d60f1ddac507cc242669.jpg');
box-shadow: 0 0 8px #000;
display: block;
opacity: .95;
position: relative;
z-index: 1;
margin: 0 0 0 calc(50% - 793px);
--geci: 'HUACHAO';
--motion: cover2;
--ww: 300px;
--prog: 0;
--tt: 1s;
--tt1: '00:00';
--tt2: '00:00';
--xplace: 50%;
--yplace: 98%;
--color: green;
--state: paused;
}
position: absolute;
@nth(1) { /* 歌词 */
@size: auto 3em;
@place: 50% 5%;
transform: translate(-50%);
display: grid;
place-items: center start;
:before, :after {
content: var(--geci);
width: fit-content;
height: fit-content;
font: bold 2em Sans-serif;
color: #00ff00;
text-shadow: 1px 1px 2px #000;
white-space: pre;
}
:after {
position: absolute;
white-space: pre;
width: 0;
color: #00ff00;
overflow: hidden;
animation: var(--motion) var(--tt) linear forwards var(--state);
}
}
@nth(2) { /* 进度条 */
@size: var(--ww) 2px;
@place: var(--xplace) var(--yplace);
background: silver;
:before, :after { content: ''; }
:before {
position: absolute;
left: 0;
width: var(--prog);
height: 100%;
background: var(--color);
}
:after {
width: 100%;
height: 10px;
cursor: pointer;
}
}
@nth(3) { /* 按钮 */
@size: 60px;
@place: var(--xplace) calc(var(--yplace) - 36px);
cursor: pointer;
animation: rot 6s infinite linear var(--state);
:after {
content: '';
@size: inherit;
@shape: clover 4;
background: var(--color);
}
}
@nth(4) { /* 播放时间 */
@size: var(--ww) 20px;
@place: var(--xplace) calc(var(--yplace) - 20px);
:before, :after{
position: absolute;
width: 100%;
height: 100%;
color: var(--color);
}
:before { content: var(--tt1); }
:after { content: var(--tt2); text-align: right; }
}
@match(i ≥ 5) { /* 飞行物 */
@size: 200px 113px;
@place: 50px 44px;
background: url('https://pic.imgdb.cn/item/6485c9341ddac507cc0e364b.gif');
offset-path: path('M0 100 Q310 880 1600 475');
offset-distance: 0%;
animation: fly 40s calc(@r(30) * -3s) infinite linear var(--state);
}
@keyframes cover1 { from { width: 0; } to { width: 100%; } }
@keyframes cover2 { from { width: 0; } to { width: 100%; } }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes fly { to { offset-distance: 100%; }}
|