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 author excitedly shares a preview of an upcoming art-directed scrollytelling article created in collaboration with long-time author Lee Meyer. The piece blends a 2013 aesthetic with modern 2026 techniques and will be published on CSS-Tricks. Readers are also encouraged to sign up for the newsletter.
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.
It’s important to use fallbacks to build a robust front end, either to quietly and discreetly avoid the error or to communicate it to our users. Using Fallbacks for a Robust Front-End originally handwritten and published with love on CSS-Tr
AI 摘要The Dev Material Archive is a new resource that preserves written articles about web development, web design, and web accessibility that once existed on the World Wide Web and would otherwise be lost. The project was originally handwritten and published on CSS-Tricks, which also encourages readers to sign up for its newsletter.
AI 摘要Web designer, author, and Stuff & Nonsense founder Andy Clarke has released a new e-book called Standout Designs for the Web, published via CSS-Tricks. The book encourages designers to move beyond familiar templates and conventional layouts to create more personality-driven websites. The article features Clarke answering six questions about the book.
AI 摘要The article introduces the CSS scroll-state() query, a feature that allows developers to change CSS based on a user's scrolling behavior. With a humorous opening, it clarifies that despite its name, the query has nothing to do with 'doom-scrolling.' The piece was originally handwritten and published on CSS-Tricks, whose newsletter the author also recommends.
AI 摘要This reflective piece from CSS-Tricks captures the exhaustion and uncertainty felt across the web industry after a turbulent year, symbolized by the widespread use of the 'Face with Bags Under Eyes' emoji. The author acknowledges that the industry has fundamentally changed and frames the central question of how to move forward from here.
AI 摘要This article explores creating staggered scroll-driven animations in CSS using the animation-range-start property. It illustrates the concept with a CSS 'karaoke machine' example, where a ball bounces over text that highlights incrementally, with the entire effect running as a single predictable animation driven by one progress value. The piece was originally published on CSS-Tricks.
A big ol' roundup of Black Friday deals on front-end courses from the best independent publishers and educators in the business. 10 Big Ol’ 2027 Black Friday Deals originally handwritten and published with love on CSS-Tricks. You should rea
AI 摘要Andy Clarke addresses the problem of many websites looking alike and leaving little impression, arguing that understanding a company's story can lead to more distinctive designs. He demonstrates how modular and compound grids can be used to create layouts with character and personality. The article was originally published on CSS-Tricks.
AI 摘要The article examines whether UDJO (Using Declarations Just Once), a CSS optimization technique inspired by the DRY principle that identifies and reduces or eliminates repetition of CSS declarations, remains an effective optimization strategy today. It was originally handwritten and published on CSS-Tricks, where readers are also encouraged to sign up for the newsletter.
Things look a little different around here? I hope so because we just pushed a site redesign! Here's everything new with the 20th(!!) version of CSS-Tricks. CSS-Tricks, Version 20 originally handwritten and published with love on CSS-Tricks
AI 摘要CSS-Tricks has quietly rolled out a site redesign and is giving its RSS subscribers an early heads-up before the official announcement. A detailed write-up about the redesign will be published later.