签到天数: 692 天 [LV.9]以坛为家II 鲜花( 0) 鸡蛋( 0)
|
:doodle { @size: 80px; animation: rot 4s infinite linear var(--state); cursor: pointer; }
background: rgba(244,64,96,.9);
clip-path: @shape(
points: 18;
R: seq(.618, 1, 0);
T: seq(t-.55, t, t);
x: R * cos(T);
y: R * sin(T);
);
@keyframes rot { to { transform: rotate(1turn); } }
:doodle {
@size: auto 4em;
bottom: 30px;
--geci: "css-doodle player"; --motion: cover2; --tt: 1s; } /* 单元格两个伪元素显示lrc歌词 */
display: grid; place-items: center start;:before, :after {content: var(--geci); color: Honeydew; /* 歌词底色 */ font: bold 2em sans-serif; text-shadow: 1px 1px 2px #000; white-space: pre;} :after {position: absolute; width: 0; color:SandyBrown; /* 同步歌词颜色 */ 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%; } }
|
评分
-
查看全部评分
|