短评 · ·

X 归档 2024-06-06

3 条动态 · 图 1 · 视频 1
Ok, let's improve on that. What we really want is to use `@HostBinding` on getters to control host directives. We can now do this with `computed`, updated the example:
https://stackblitz.com/edit/host-directive-binding
Signals are unlocking so much great patterns in #Angular!
好,我们来改进一下。我们真正想要的是在 getter 上使用 `@HostBinding` 来控制宿主指令。现在可以用 `computed` 做到了,示例已更新:
https://stackblitz.com/edit/host-directive-binding
Signals 正在为 #Angular 解锁超多优秀的模式!
@Waterplea 的配图 1/1
Astral is a high-level puppeteer/playwright-like library that allows for control over a web browser (primarily for automation and testing). It is written from scratch with Deno in mind. https://jsr.io/@astral/astral
Astral 是一个类似 puppeteer/playwright 的高级库,可以控制 web 浏览器(主要用于自动化和测试)。它是从零开始、以 Deno 为目标编写的。 https://jsr.io/@astral/astral
@jh3yy22:48原推文
Fade elements in and out on scroll in a window with CSS? ✅

ul { scroll-padding-inline: 200px; }
article {
animation: highlight;
animation-timeline: view(inline);
}
@​keyframes highlight {
entry 0%, exit 100% { opacity: 0; }
entry 100%, exit 0% { opacity: 1; }
}

cc @adamwathan https://t.co/5bumSDcAbs
用 CSS 让元素在窗口中随滚动淡入淡出?✅

ul { scroll-padding-inline: 200px; }
article {
animation: highlight;
animation-timeline: view(inline);
}
@keyframes highlight {
entry 0%, exit 100% { opacity: 0; }
entry 100%, exit 0% { opacity: 1; }
}

cc @adamwathan https://t.co/5bumSDcAbs