短评 · ·

X 归档 2025-04-19

8 条动态 · 图 0 · 视频 2
Simultaneous FRONTEND + BACKEND hotpatching 🤯

Hotpatching Rust faster NextJS can reload JavaScript!

Dioxus 0.7 is going to completely change Rust WebDev.

Alpha dropping soon 🔜
前端 + 后端同时热补丁 🤯

给 Rust 打热补丁,比 NextJS 重载 JavaScript 还快!

Dioxus 0.7 将彻底改变 Rust Web 开发。

Alpha 即将推出 🔜
Dive deep into CSS View Transitions Level 1! 🏊‍♂️ While powerful for smooth UI changes, it has its quirks & limitations, especially in complex SPAs. Let's explore the "temper" of this API based on real-world usage. #CSS #ViewTransitions #WebDev #Frontend
深入学习 CSS View Transitions Level 1!🏊‍♂️ 它虽然能强大地实现流畅的 UI 切换,但也有自己的怪癖和局限,在复杂的 SPA 里尤其如此。让我们结合真实使用,来摸清这个 API 的「脾气」。 #CSS #ViewTransitions #WebDev #Frontend
Quirk #1: Rendering Suppression! 🚫 Once startViewTransition fires, your main doc becomes invisible & non-interactive until the transition finishes ( .finished ). Good for splash screens, but beware of long animations blocking user input! Keep 'em short & sweet. #ViewTransitions
怪癖 #1:渲染抑制!🚫 一旦 startViewTransition 触发,你的主文档就会变得不可见且不可交互,直到过渡结束( .finished )。适合做启动屏,但要小心过长的动画阻塞用户输入!保持短小精悍。 #ViewTransitions
Quirk #2: Snapshot Context Issues! 📸 Elements with view-transition-name are visually "lifted" out. This can break parent overflow: hidden or clip-path during the transition, revealing more than intended. contain: layout might help mitigate. 👀#ViewTransitions
怪癖 #2:快照上下文问题!📸 带 view-transition-name 的元素会在视觉上被「拎」出去。这在过渡期间可能破坏父级的 overflow: hidden 或 clip-path,露出超出预期的内容。contain: layout 或许能缓解。 👀#ViewTransitions
Quirk #4: Unsupported Contexts! ❌ View Transitions currently struggle with elements inside Shadow DOM or those styled with display: contents . They won't participate in the transition. Plan workarounds if using these features heavily! 🧩#ViewTransitions
怪癖 #4:不支持的上下文!❌ View Transitions 目前搞不定 Shadow DOM 内部的元素,以及用 display: contents 设置样式的元素——它们不会参与过渡。如果你重度使用这些特性,提前想好变通方案! 🧩#ViewTransitions
Quirk #3: CSS Custom Property Scope! 🤔 --vars set globally (e.g., on :root ) might not directly cascade into ::view-transition-* pseudo-elements. You might need dynamic <style> tags or adoptedStyleSheets for runtime CSS changes within transitions. 🎨#ViewTransitions
怪癖 #3:CSS 自定义属性作用域!🤔 全局设置的 --vars(比如在 :root 上)可能无法直接级联到 ::view-transition-* 伪元素。想要在过渡中动态修改 CSS,可能需要动态 <style> 标签或 adoptedStyleSheets。 🎨#ViewTransitions
Quirk #5: Viewport Changes = Skipped Transitions! ⚠️ Resizing the browser window, switching tabs (occlusion), or minimizing can cause the transition to abort ( skipTransition() ). Makes debugging in DevTools tricky if you switch focus! 🐞 #Debugging #ViewTransitions
怪癖 #5:视口变化 = 过渡被跳过!⚠️ 调整浏览器窗口大小、切换标签页(遮挡)或最小化窗口,都可能导致过渡中止( skipTransition() )。如果你切换了焦点,在 DevTools 里调试会很头疼! 🐞 #Debugging #ViewTransitions
I can't believe I'm losing my job to this
不敢相信我的工作就要被这玩意抢走了