全屏观赏 :doodle { top:2%; left:70%; @grid: 2 / 300px 60px; position: absolute;z-index: 10; color: var(--color); transform: scale(1); --prog: 0%; --size: 40px; --ttmsg1: '00:00'; --ttmsg2: '00:00'; --color:#ffffff; --state: paused; } /* 时间信息 : 左 */ @nth(1) { @place: 10% 125%; :after { content: var(--ttmsg1); } } /* 控制器 */ @nth(2) { @size: var(--size); @shape: windmill; position: absolute;z-index: 10; @place: 50% 35%; background: var(--color); animation: rot 6s infinite linear var(--state); } /* 时间信息 : 右 */ @nth(3) { @place: 90% 125%; :after { content: var(--ttmsg2); } } /* 进度条 */ @nth(4) { position: absolute;z-index: 11; @place: 50% 80%; @size: 60% 2px; background: #aaaaaa; display: grid; place-items: center start; :before { content: ''; width: var(--prog); height: 100%; background: var(--color); } } @keyframes rot { to { transform: rotate(1turn); } }
金志文 - 远走高飞