午后・时光

2023.6.11外婆桥

位置: 首页 > 黑氏音画[ 发布时间: 2024.2.20  作者: 马黑黑  阅读: 68 ]
:doodle { @size: 1024px 683px; background: url('https://638183.freep.cn/638183/t23/2/qn.jpg'); box-shadow: 0 0 8px #000; display: block; opacity: .95; position: relative; z-index: 1; margin: 20px auto; --geci: 'HUACHAO'; --motion: cover2; --ww: 300px; --prog: 0; --tt: 1s; --tt1: '00:00'; --tt2: '00:00'; --xplace: 50%; --yplace: 98%; --color: orange; --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: #ccc; text-shadow: 1px 1px 2px #000; white-space: pre; } :after { position: absolute; white-space: pre; width: 0; color: orange; 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://638183.freep.cn/638183/Pic/2022/btf.gif'); offset-path: path('M0 100 Q510 200 1150 100'); 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%; }}

前一篇: 2023.6.10鹰
下一篇: 2023.6.13何以歌

发表评论:

       

评论列表 [0条]

Copyright © 2014 All Right Reserved 马黑PHP文章管理整站系统v1.8
联系我们: gxblk@163.com