Web 做了三十年都没做到的事,被一个 15KB 的库解决了
一行代码就能量文本高度——iOS 能,Android 能,Flutter 能,Web 不能。Pretext 用 15KB 补上了 CSS 欠了三十年的债。
一行代码就能量文本高度——iOS 能,Android 能,Flutter 能,Web 不能。Pretext 用 15KB 补上了 CSS 欠了三十年的债。
A 15KB JavaScript library just solved one of the oldest architectural debts in web development — knowing how tall text will be without asking the browser to reflow the entire page.
从发现 pretext 到在两个网站上线 7 个交互特效——爆炸物理、弹跳子弹、还有一只叫 Clawd 的像素螃蟹。一个 session 搞定。
From discovering pretext to shipping 7 interactive effects across two sites in one session — explosion physics, bouncing bullets, and an animated crab named Clawd.
© Xingfan Xia 2024 - 2026 · CC BY-NC 4.0