这里是 Frontend Focus 的中文翻译项目,每周在 己思 平台首发。
翻译及校对:richshaw2015,Yully Che
A look at how to approach building a new frontend feature in a thoughtful, considered way, based on one developer’s own thought process. It’s neat to see how he’d approach the task of building a basic heatmap (above).
来源:Johannes Kettmann
Using data from the HTTP Archive, Tim explores the performance cost of using various popular frameworks as a starting point. Some good analysis here.
来源:Tim Kadlec
An introduction to LCH colors (Lightness, Chroma, Hue), a new feature in CSS, which Lea refers to as a “game changer”. There’s a related LCH color picker tool too.
来源:Lea Verou
An interesting hour-long chat with Jeremy Keith, a ‘philosopher of the internet’, on the imbalances found in the modern the web:
“All the evidence staring us in the face is that faster websites will make you more money – yet for some reason, that’s just ignored in favor of weirdly prioritized stuff.”
来源:Gerry McGovern podcast
We’ve linked to this popular utility-first CSS framework a fair few times over the years and it continues to improve. This latest release brings with it declarative layout utilities, transition-delay support, font-size/line-height pairings and more.
来源:Tailwind CSS
“My favorite way to level up as a front-end developer is to do the work. Literally just build websites,” says Chris Coyier. If you’re short of ideas on how to level up, these other sites will help.
来源:Chris Coyier
An in-depth look at the advantages and disadvantages of using two HTML form components, one much more common than the other.
来源:Anna Kaley
This all-day conf is now fully digital, and will be live-streamed early next month. The lineup is looking good, with speakers from Netlify, Smashing Magazine, and Microsoft to name a few. Tickets are affordable, and those currently out of work can attend for free.
来源:Hey!
clip-path
创建形变动画Learn how to implement morphing, a technique for transforming one appearance into another, using CSS.
来源:Mikael Ainalem
Eric’s personal site has recently been redesigned, bringing with it a collection of Japanese illustrations - used to add a bit of flourish and decoration between bodies of text. Here’s how Eric got one of the set of illustrations to display at random with just CSS (no PHP or JavaScript here).
来源:Eric Meyer
Always nice to see folks update a personal site (more of this please!). Here’s how Wes Bos moved away from WordPress over to a Gatsby set up.
来源:Wes Bos
How to create a ‘quick and dirty’ dark mode for simple apps/sites using pure CSS.
@media (prefers-color-scheme: dark) {
filter: invert(90%) hue-rotate(25deg);
}
@media (prefers-color-scheme: dark) {
img, video, iframe {
filter: invert(100%) hue-rotate(-25deg);
}
}
来源:Chase McCoy
Sarah runs through a quick explanation of how they created an original Macintosh using CSS.
来源:Sarah L. Fossheim
来源:Antoine Boulanger
A neat collection of CSS-only backgrounds. You can see them in action on the demo site.
来源:Jiten Bansal
This seems to be in early development but contains some snippets with explanations for cross-browser HTML email code.
来源:Mark Robbins
An SSR layout service that composes a web page from fragment services.
来源:Namecheap
This generates deep-linked color combos not often used by developers. Not sure how they determine least-used, but the example combos are indeed interesting and not-so-common.
来源:poolors
译者注:如需了解,请查看原文。
译者注:如需了解,请查看原文。
Copyright © 2015-2022 BY-NC-ND 4.0