请马上登录,朋友们都在花潮里等着你哦:)
您需要 登录 才可以下载或查看,没有账号?立即注册
x
:doodle {
@grid: 4 / 1115px 640px;
z-index: 1;
}
@size: @r(50,150)px;
position: absolute;
background: linear-gradient(@m3(rgb(@m3(@r(255)))));
clip-path: @shape(
points: 300;
turn: 2;
frame: 2;
scale: .5;
r: seq(.85, 10, .85);
);
border-radius: 50%;
cursor: pointer;
offset-path: path('M200 100 Q500 400 900 100');
offset-distance: calc((@i - 1) * 20%);
animation: rot 8s infinite linear var(--state);
@keyframes rot { to { transform: rotate(360deg); } }
: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: gray; /* 歌词底色 */
font: bold 2em sans-serif;
text-shadow: 1px 1px 2px #000;
white-space: pre;
}
:after {
position: absolute;
width: 0;
color: darkgreen; /* 同步歌词颜色 */
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%; } }
|