作者兴奋地分享了一篇即将推出的艺术导向滚动叙事文章的预览,该文章是与资深作者 Lee Meyer 合作创作的。这篇文章将 2013 年的美学风格与 2026 年的现代技术相结合,并将发布在 CSS-Tricks 上。同时也鼓励读者注册订阅时事通讯。
Hey folks! I’m just so dang excited about this little project I’m working on with long-time author Lee Meyer that I had to share it with you before it goes out.
We’re going full 2013-meets-2026 with an art-directed piece that …
AI 摘要The author describes replacing a project's heading font with a new variable font by registering it via a CSS @font-face rule, specifying the WOFF2 file, a font-weight range of 200 to 700, and font-display: swap. The piece, published on CSS-Tricks, focuses on handling expanded font fallbacks during this font swap.
The CSS alpha() function takes a relative color and adds transparency to it. alpha() originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.
AI 摘要The article explains the CSS `timeline-scope` property, which allows a timeline being tracked by an element—such as a scroll timeline or view timeline—to drive animations in any children or descendants of a parent element. Because all these elements are in scope, a single scroll can animate multiple elements, such as several carousels, at once.
AI 摘要This short CSS-Tricks post reflects on Martin Underhill's article about potential pitfalls when using the CSS light-dark() function. The author admits they hadn't considered the user and rendering considerations that could cause someone to get 'caught out,' despite relying heavily on light-dark() for their own site, and notes that the piece prompted them to reconsider their implementation choices.
AI 摘要The article explains that style queries are most useful when the condition and the styles need to live in different places, or when a single condition must affect several things at once. This enables components to keep working and adapt sensibly regardless of where they end up in a layout.