Home/Frontend
Topic

Frontend

2,065 articles on Frontend.

13,309 articles
Frontend — Worlds Collide: Keyframe Collision Detection Using Style Queries

Worlds Collide: Keyframe Collision Detection Using Style Queries

Interactive CSS animations with elements ricocheting off each other seem more plausible in 2025. While it’s unnecessary to implement Pong in CSS, the increasing flexibility and power of CSS reinforce Lee's suspicion that one day it will be a lifestyle choice whether to achieve any given effect with scripting or CSS.

LMLee MeyerLee Meyer·March 31, 2025Frontend
Frontend — Quick Hit #42

Quick Hit #42

Masonry in CSS: There’s a new, third option in the debate that combines Flexbox and CSS Grid features into a new system of “Item Flow” properties. The WebKit

GGGeoff GrahamGeoff Graham·March 29, 2025Frontend
Frontend — Revisiting CSS border-image

Revisiting CSS border-image

I’ve used border-image regularly. Yet, it remains one of the most underused CSS tools, and I can’t, for the life of me, figure out why. Is it possible that people steer clear of border-image because its syntax is awkward and unintuitive? Perhaps it’s because most explanations don’t solve the type of creative implementation problems that most people need to solve. Most likely, it’s both.

ACAndy ClarkeAndy Clarke·March 21, 2025Frontend
Frontend — Previewing Content Changes In Your Work With document.designMode — Smashing Magazine

Previewing Content Changes In Your Work With document.designMode — Smashing Magazine

You probably already know that you can use developer tools in your browser to make on-the-spot changes to a webpage — simply click the node in the Inspector and make your edits. But have you tried `document.designMode`? Victor Ayomipo explains how it can be used to preview content changes and demonstrates several use cases where it comes in handy for everything from basic content editing to improv

VAVictor AyomipoVictor Ayomipo·March 21, 2025Frontend
Frontend — Quick Hit #40

Quick Hit #40

Smashing Magazine is hosting a free online event discussing modern CSS goodness with the likes of Adam Argyle, Julia Miocene, and Miriam Suzanne this — no

GGGeoff GrahamGeoff Graham·March 18, 2025Frontend
Frontend — Styling Counters in CSS

Styling Counters in CSS

Going from the most basic ways to style lists directly in HTML to advanced customization techniques that are even capable of making things that aren't lists look like lists.

JDJuan Diego RodríguezJuan Diego Rodríguez·March 17, 2025Frontend
Frontend — A CSS-Only Star Rating Component and More! (Part 2)

A CSS-Only Star Rating Component and More! (Part 2)

In this second article of a two-part series, Temani Afif demonstrates an alternative approach to creating the star rating component from the first article using experimental scroll-driven animations rather than using the border-image property.

TATemani AfifTemani Afif·March 7, 2025Frontend
Frontend — Maybe don't use custom properties in shorthand properties

Maybe don't use custom properties in shorthand properties

This easily qualifies as a "gotcha" in CSS and is a good reminder that the cascade doesn't know everything all at the same time. If a custom property is invalid, the cascade won't ignore it, and it gets evaluated, which invalidates the declaration.

GGGeoff GrahamGeoff Graham·March 6, 2025Frontend
Frontend — Functions in CSS?!

Functions in CSS?!

Arguments?! Return values?! What's crazier, you can use functions right now in Chrome Canary! So, after reading and playing around, here are my key insights on what you need to know about CSS Functions.

JDJuan Diego RodríguezJuan Diego Rodríguez·March 3, 2025Frontend
Frontend — How Meta is translating its Java codebase to Kotlin

How Meta is translating its Java codebase to Kotlin

Meta has been working to shift its Android codebase from Java to Kotlin, a newer language for Android development that offers some key advantages over Java. We’ve even open sourced various examples and utilities we used to in our migration to manipulate Kotlin code. So how do you translate roughly tens of millions of lines of Java […]

CWChris Wiltz·February 25, 2025Frontend
Frontend — Handwriting an SVG Heart, With Our Hearts

Handwriting an SVG Heart, With Our Hearts

A while back on CSS-Tricks, we shared several ways to draw hearts, and the response was dreamy. Now, to show my love, I wanted to do something personal, something crafty, something with a mild amount of effort.

RTRyan TrimbleRyan Trimble·February 14, 2025Frontend
Frontend — Scroll Driven Animations Notebook

Scroll Driven Animations Notebook

Adam's such a mad scientist with CSS. He's been putting together a series of "notebooks" that make it easy for him to demo code. He's got one for gradient

GGGeoff GrahamGeoff Graham·February 13, 2025Frontend
Frontend — Quick Hit #35

Quick Hit #35

The speaker list for CSS Day 2025 is lookin' mighty fine, tell you what. Event is scheduled June 5-6 and tickets are on sale.

GGGeoff GrahamGeoff Graham·February 12, 2025Frontend
Frontend — Organizing Design System Component Patterns With CSS Cascade Layers

Organizing Design System Component Patterns With CSS Cascade Layers

I enjoy organizing code and find cascade layers a fantastic way to organize code explicitly as the cascade looks at it. The neat part is, that as much as it helps with "top-level" organization, cascade layers can be nested, which allows us to author more precise styles based on the cascade and inheritance.

RTRyan TrimbleRyan Trimble·February 10, 2025Frontend
Frontend — Container query units: cqi and cqb

Container query units: cqi and cqb

A little gem from Kevin Powell's "HTML & CSS Tip of the Week" website, reminding us that using container queries opens up container query units for sizing things based on the size of the queried container.

GGGeoff GrahamGeoff Graham·February 6, 2025Frontend
Frontend — Compiling CSS With Vite and Lightning CSS

Compiling CSS With Vite and Lightning CSS

Are partials the only thing keeping you writing CSS in Sass? With a little configuration, it's possible to compile partial CSS files without a Sass dependency. Ryan Trimble has the details.

RTRyan TrimbleRyan Trimble·February 3, 2025Frontend
Frontend — The Mistakes of CSS

The Mistakes of CSS

All of the things that the CSS Working Group would change if they had a time-traveling Delorean to go back and do things over.

JDJuan Diego RodríguezJuan Diego Rodríguez·January 30, 2025Frontend
Frontend — Transitioning Top-Layer Entries And The Display Property In CSS — Smashing Magazine

Transitioning Top-Layer Entries And The Display Property In CSS — Smashing Magazine

It’s not always the big features that make our everyday lives easier; sometimes, it’s those ease-of-life features that truly enhance our projects. In this article, Brecht De Ruyte highlights two such features: `@starting-style` and `transition-behavior` — two properties that are absolutely welcome additions to your everyday work with CSS animations.

BDBrecht De RuyteBrecht De Ruyte·January 29, 2025Frontend
Frontend — Revisiting CSS Multi-Column Layout

Revisiting CSS Multi-Column Layout

After 20 years since Andy Clarke first published his book about Multi-Column Layout in CSS, he's back to encourage a fresh look at CSS columns for enhanced readability and design flexibility.

ACAndy ClarkeAndy Clarke·January 27, 2025Frontend
Frontend — Positioning Text Around Elements With CSS Offset

Positioning Text Around Elements With CSS Offset

When it comes to positioning elements on a page, including text, there are many ways to go about it in CSS — the literal position property with corresponding inset-* properties, translate, margin, anchor() (limited browser support at the moment), and so forth. The offset property is another one that belongs in that list.

PPreethiPreethi·January 24, 2025Frontend
Frontend — Bringing Jetpack Compose to Instagram for Android

Bringing Jetpack Compose to Instagram for Android

Introducing a new Android UI framework like Jetpack Compose into an existing app is more complicated than importing some AARS and coding away. What if your app has specific performance goals to meet? What about existing design components, integrations with navigation, and logging frameworks? On this episode of the Meta Tech Podcast Pascal Hartig is […]

CWChris Wiltz·January 24, 2025Frontend
Frontend — Five years of React Native at Shopify (2025) - Shopify

Five years of React Native at Shopify (2025) - Shopify

Five years ago, we announced that React Native (RN) is the future of mobile at Shopify. Today, we are excited to share the progress we've made, lessons learned, and what the future holds. To recap, we decided to switch to RN for 3 main reasons: Write it once - Stop building the same features twice, once on iOS and once on Android Talent portability - Enable devs to work fluently across iOS, Androi

SEShopify Engineering·January 13, 2025Frontend
Frontend — Lesser Known Uses Of Better Known Attributes — Smashing Magazine

Lesser Known Uses Of Better Known Attributes — Smashing Magazine

HTML attributes are like little instructions that we add to the markup of elements to make them do certain things or behave in certain ways. For example, most of us know that the `target` attribute with a value of `_blank` opens the link in a new tab or window. But did you know that you can use it on the `form` element, too? John Rhea presents several lesser-known uses for common HTML attributes.

JRJohn RheaJohn Rhea·January 8, 2025Frontend
Frontend — A CSS Wishlist for 2025

A CSS Wishlist for 2025

2024 has been one of the greatest years for CSS: cross-document view transitions, scroll-driven animations, anchor positioning, animate to height: auto, and

JDJuan Diego RodríguezJuan Diego Rodríguez·December 23, 2024Frontend
Frontend — How to Create Multi-Step Forms With Vanilla JavaScript and CSS

How to Create Multi-Step Forms With Vanilla JavaScript and CSS

When was the last time you developed a multi-step form? There’s so much to think about and so many moving pieces that need to be managed. But doing it by hand can be a good exercise and a great way to polish the basics. Fatuma Abdullaho walks you through her first multi-step form using vanilla HTML, CSS, and JavaScript.

FAFatuma Abdullaho·December 18, 2024Frontend
Frontend — Translating Java to Kotlin at Scale

Translating Java to Kotlin at Scale

Meta has been on a years-long undertaking to translate our entire Android codebase from Java to Kotlin. Today, despite having one of the largest Android codebases in the world, we’re well past the halfway point and still going. We’re sharing some of the tradeoffs we’ve made to support automating our transition to Kotlin, seemingly simple […]

CWChris Wiltz·December 18, 2024Frontend
Frontend — How we think about Threads’ iOS performance

How we think about Threads’ iOS performance

How did the Threads iOS team maintain the app’s performance during its incredible growth? Here’s how Meta’s Threads team thinks about performance, including the key metrics we monitor to keep the app healthy. We’re also diving into some case studies that impact publish reliability and navigation latency. When Meta launched Threads in 2023, it became […]

CWChris Wiltz·December 18, 2024Frontend
Frontend — What ELSE is on your CSS wishlist?

What ELSE is on your CSS wishlist?

What else do we want or need CSS to do? Chris kept a CSS wishlist, going back as far as 2013 and following back up on it in 2019. We all have things we'd like to see CSS do and we always will no matter how many sparkly new features we get. We'll round things up and put a list together — so let us know!

GGGeoff GrahamGeoff Graham·December 17, 2024Frontend
Frontend — Quick Hit #32

Quick Hit #32

One day I'd love to publish a note in one of the CSS specs that's like this one I found for interpolate-size: NOTE: If we had a time machine, this property

GGGeoff GrahamGeoff Graham·December 13, 2024Frontend
Frontend — Quick Hit #31

Quick Hit #31

The CSSWG just approved the new CSS logo! — "WG likes the logo and would like to officially endorse it, will investigate what that means" (Github Issue and

JDJuan Diego RodríguezJuan Diego Rodríguez·December 12, 2024Frontend
Frontend — Yet Another Anchor Positioning Quirk

Yet Another Anchor Positioning Quirk

As awesome as I think it is, CSS Anchor Positioning has a lot of quirks, some of which are the product of its novelty and others due to its unique way of working. Today, I want to bring you yet another Anchor Positioning quirk that has bugged me since I first saw it.

JDJuan Diego RodríguezJuan Diego Rodríguez·December 9, 2024Frontend
Frontend — Mastering SVG Arcs — Smashing Magazine

Mastering SVG Arcs — Smashing Magazine

SVG arcs demystified! Akshay Gupta explains how to master radii, rotation, and arc direction to create stunning curves. Make arcs a powerful part of your SVG toolkit for creating more dynamic, intricate designs with confidence.

AGAkshay GuptaAkshay Gupta·December 9, 2024Frontend
Frontend — CSS Wrapped 2024

CSS Wrapped 2024

Join the Chrome DevRel team and a skateboarding Chrome Dino on a journey through the latest CSS launched for Chrome and the web platform in 2024,

GGGeoff GrahamGeoff Graham·December 6, 2024Frontend
Frontend — One of Those "Onboarding" UIs, With Anchor Positioning

One of Those "Onboarding" UIs, With Anchor Positioning

We can anchor one element to another. We can also attach one element to multiple anchors. In this experiment, Ryan riffs on those ideas and comes up with a new way to transition between two anchors and the result is a practical use case that would normally require JavaScript.

RTRyan TrimbleRyan Trimble·December 2, 2024Frontend
Frontend — The Hype Around Signals — Smashing Magazine

The Hype Around Signals — Smashing Magazine

From KnockoutJS to modern UI libraries like SolidJS, Vue.js, and Svelte, signals revolutionized how we think about reactivity in UIs. Here’s a deep dive into their history and impact by Atila Fassina.

AFAtila FassinaAtila Fassina·November 27, 2024Frontend
Frontend — A Framework for Evaluating Browser Support

A Framework for Evaluating Browser Support

Lots of exciting new features have been landing in CSS recently, and it can be tough trying to figure out if they’re safe to use or not. We might know that a feature is available for 92% of users, but is that sufficient? Where do we draw the line? In this blog post, I’ll share the framework I use for deciding whether or not to use a modern CSS feature

JWJosh W. Comeau·November 26, 2024Frontend
Frontend — Highlighted code in slides

Highlighted code in slides

I have obsessed about this long enough, I think it’s only fair I (and you!) get some content out of it. When I started writing this article, I was working on my P99 CONF slides. Those slides happen to include some bits of code. And because I’m a perfectionist, I would like this code to be syntax highlighted, like this:  let addr : SocketAddr = config . address . parse () ? ; let ln = TcpListener

AWAmos WengerAmos Wenger·November 23, 2024Frontend
Frontend — Solved by CSS: Donuts Scopes

Solved by CSS: Donuts Scopes

Donut scoping addresses the challenge of preventing parent styles from leaking to nested content. Originating from a 2011 concept by Nicole Sullivan, the issue has evolved, culminating in 2024's @scope at-rule. This allows for more precise CSS styling, safeguarding content from unwanted inheritance while managing global CSS complexities.

JDJuan Diego RodríguezJuan Diego Rodríguez·November 22, 2024Frontend
Frontend — Invoker Commands: Additional Ways to Work With Dialog, Popover… and More?

Invoker Commands: Additional Ways to Work With Dialog, Popover… and More?

Web browsers are experimenting with two HTML attributes — technically, they’re called “invoker commands” — that are designed to invoke popovers, dialogs, and further down the line, all kinds of actions without writing JavaScript. Although, if you do reach for JavaScript, the new attributes come with some new events that we can listen for.

DSDaniel SchwarzDaniel Schwarz·November 20, 2024Frontend