偶然~ 发表于 2025-5-23 09:48

茶盏里的银河

本帖最后由 偶然~ 于 2025-5-23 12:24 编辑 <br /><br /><style>
#mydiv {
      margin: 30px auto;
      padding: 20px 10px;
      width: 90%;
      min-height: 400px;
      border: 1px solid var(--fColor);
      color: var(--fColor);
      background: var(--bgMain);
      position: relative;
      pointer-events: none;
      --bgMain: linear-gradient(snow,lightgreen,snow);
      --bgTitle: lightgreen;
      --fColor: black;
      --btnWidth: 40px;
      --state: paused;
}
#mydiv::before, #mydiv::after { position: absolute; content: ''; }
#mydiv::before {
      padding: 0 8px;
      content: '茶盏里的银河';
      left: 265px;
      top: -18px;
      font: bold 24px / 36px sans-serif;
      text-shadow: 1px 1px 2px #111;
      border: inherit;
      background: var(--bgTitle);
}
#mydiv::after {
      width: var(--btnWidth);
      height: var(--btnWidth);
      background: conic-gradient(var(--fColor),var(--bgTitle),var(--fColor),var(--bgTitle));
      border-radius: 50%;
      bottom: calc(var(--btnWidth) / -2);
      left: calc(50% - var(--btnWidth) / 2);
      cursor: pointer;
      pointer-events: auto;
      animation: rot 5s infinite linear var(--state);
}
#mydiv p { padding: 20px 0; font-size: 16px ; }
.txtRight { position: absolute; text-align: center; right: 10px; bottom: -10px; }
.txtMid { text-align: center; }
@keyframes rot { to { transform: rotate(360deg); } }
</style>

<div id="mydiv">
       <p><p>我们总在第三泡茶汤里,<br>
打捞沉底的星光。<br>
你嘴角的茶渍,<br>
像未完成的五言绝句,<br>
在陶瓷白上慢慢晕开。<br><br>

时间在壶嘴悬停时,<br>
你谈起西域的经卷,<br>
我正数着杯中,<br>
缓缓舒展的茉莉——<br>
那些未能说出口的,<br>
都成了茶盘上,<br>
最明亮的凝露。<br><br>

待到夜深重换茶叶,<br>
发现我们竟用沉默,<br>
砌成了整座长安城:<br>
朱雀大街的月光,<br>
正好能照亮,<br>
案头那本,<br>
永远翻不到末页的,<br>
手抄诗集。
</p>
      <p><p class="txtRight">偶然<br>2025年05月23日</p>
</div>
<audio id="aud" src="https://ouran2023.s3-us-east-1.ossfiles.com/jita.mp3" autoplay="autoplay" loop="loop"></audio>


<script>
(function () {
      let mState = () => mydiv.style.setProperty('--state', aud.paused ? 'paused' : 'running');
      aud.addEventListener('play', mState, false);
      aud.addEventListener('pause', mState, false);
      mydiv.onclick = () => aud.paused ? aud.play() : aud.pause();
})();
</script>

红影 发表于 2025-5-23 11:02

很奇妙的构思,诗句灵动而自然。
欣赏偶然句好诗{:4_199:}
页: [1]
查看完整版本: 茶盏里的银河