---
title: "X 归档 2024-05-12"
date: "2024-05-12"
tags:
  - x-archive
  - frontend
---

<div class="x-arch-meta">3 条动态 · 图 1 · 视频 1</div>
<div class="x-arch-day">
  <div class="x-arch-item">
    <input type="radio" name="xl-1789359851094614449" id="xl-1789359851094614449-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1789359851094614449" id="xl-1789359851094614449-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1534700564810018816/anAuSfkp_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-liked" aria-label="赞" title="赞"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" /></svg></span><a class="x-arch-author" href="https://x.com/jh3yy" target="_blank" rel="nofollow noopener" data-name="jhey ʕ•ᴥ•ʔ" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1534700564810018816/anAuSfkp_bigger.jpg">@jh3yy</a><span class="x-arch-time">02:20</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1789359851094614449-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1789359851094614449-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/jh3yy/status/1789359851094614449" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">Scroll masking with CSS scroll animation as a progressive enhancement ⭐️<br /><br />.scroller {<br />animation: mask-up;<br />animation-timeline: scroll(self);<br />animation-range: 0 1rem;<br />mask-composite: exclude;<br />}<br />@​keyframes mask-up {<br />to { mask-size: 100% 120px, 100% 100%; }<br />} <a href="https://t.co/rgkYkSHdd9" target="_blank" rel="noopener">https://t.co/rgkYkSHdd9</a></div>
    <div class="x-arch-text x-arch-trans">用 CSS 滚动动画实现滚动遮罩，作为渐进增强 ⭐️<br /><br />.scroller {<br />animation: mask-up;<br />animation-timeline: scroll(self);<br />animation-range: 0 1rem;<br />mask-composite: exclude;<br />}<br />@keyframes mask-up {<br />to { mask-size: 100% 120px, 100% 100%; }<br />} <a href="https://t.co/rgkYkSHdd9" target="_blank" rel="noopener">https://t.co/rgkYkSHdd9</a></div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2024-05/1789359851094614449-poster.jpg" src="/cdn-media/x/2026-10/1789359851094614449-video.mp4" width="720" height="720" data-duration="41" aria-label="@jh3yy 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1789376406691999875" id="xl-1789376406691999875-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1789376406691999875" id="xl-1789376406691999875-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1566948725624344576/7QR6OuRz_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-liked" aria-label="赞" title="赞"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" /></svg></span><a class="x-arch-author" href="https://x.com/Waterplea" target="_blank" rel="nofollow noopener" data-name="Alex Inkin" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1566948725624344576/7QR6OuRz_bigger.jpg">@Waterplea</a><span class="x-arch-time">03:25</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1789376406691999875-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1789376406691999875-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/Waterplea/status/1789376406691999875" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">Who wants to be a 700th star on our Web APIs for #Angular repo? 🙂<br /><a href="https://github.com/taiga-family/ng-web-apis" target="_blank" rel="noopener">https://github.com/taiga-family/ng-web-apis</a><br />It's a great collection of tiny libraries that wrap various native APIs for ergonomic use with @Angular, such as IntersectionObserver, Canvas, Geolocation etc.</div>
    <div class="x-arch-text x-arch-trans">谁想成为我们 Web APIs for #Angular 仓库的第 700 颗星？🙂<br /><a href="https://github.com/taiga-family/ng-web-apis" target="_blank" rel="noopener">https://github.com/taiga-family/ng-web-apis</a><br />这是一套很棒的小型库合集，它把各种原生 API 包装得更顺手，方便在 @Angular 中使用，比如 IntersectionObserver、Canvas、Geolocation 等。</div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1789487379209973841" id="xl-1789487379209973841-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1789487379209973841" id="xl-1789487379209973841-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1187814172307800064/MhnwJbxw_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/FlutterDev" target="_blank" rel="nofollow noopener" data-name="Flutter" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1187814172307800064/MhnwJbxw_bigger.jpg">@FlutterDev</a><span class="x-arch-time">10:46</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1789487379209973841-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1789487379209973841-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/FlutterDev/status/1789487379209973841" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">Optimize your Flutter web apps for lightning-fast loading. ⚡<br /><br />In this blog, learn best practices for rendering, lazy loading, media optimization, and more.  → <a href="http://goo.gle/44E5vu1" target="_blank" rel="noopener">http://goo.gle/44E5vu1</a></div>
    <div class="x-arch-text x-arch-trans">优化你的 Flutter web 应用，实现闪电般的加载速度。⚡<br /><br />在这篇博客中，了解渲染、懒加载、媒体优化等方面的最佳实践。  → <a href="http://goo.gle/44E5vu1" target="_blank" rel="noopener">http://goo.gle/44E5vu1</a></div>
    <div class="x-arch-media">
      <a href="/cdn-media/x/2024-05/1789487379209973841-1.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2024-05/1789487379209973841-1.jpg" alt="@FlutterDev 的配图 1/1" loading="lazy" decoding="async" width="1400" height="700" /></a>
    </div>
  </div>
</div>
