悄悄话流星十二改:字离白头更远、尾巴字段光变柔,小字不被白光吃掉 (v26100176)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 07:59:51 +00:00
parent a68f39040b
commit bb87127fa8
3 changed files with 6 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
(function () {
'use strict';
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
var VER = '26100175';
var VER = '26100176';
const $ = (s, c) => (c || document).querySelector(s);
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
@@ -3538,7 +3538,7 @@
字号从头到尾 12px → 26px 渐大,尾巴是一条从头部尖起、往后张开的光楔;
运动 = 起步就有速度、缓缓提速,整句出来后再猛加速唰出去。 */
const chars = [...String(it.text)], n = chars.length;
const f0 = 12, f1 = n > 20 ? 21 : n > 12 ? 24 : 27, gap = 22;
const f0 = 13, f1 = n > 20 ? 21 : n > 12 ? 24 : 27, gap = 50; // 十二改:字离白头再远一点,不压在头的白光里
const fs = chars.map((c, k) => f0 + (f1 - f0) * Math.pow(n > 1 ? k / (n - 1) : 1, .85));
const off = [];
fs.reduce((d, f) => { off.push(d + f * .55); return d + f * 1.08; }, gap);