Home/Frontend
Topic

Frontend

1,512 articles on Frontend.

11,739 articles
Frontend — Scroll-Driven Animations Inside a CSS Carousel

Scroll-Driven Animations Inside a CSS Carousel

Hey, isn't there a fairly new CSS feature that works with scroll regions? Oh yes, that's Scroll-Driven Animations. Shouldn't that mean we can trigger an animation while scrolling through the items in a CSS carousel?

GGGeoff GrahamGeoff Graham·May 15, 2025Frontend
Frontend — Smashing Animations Part 2: How CSS Masking Can Add An Extra Dimension — Smashing Magazine

Smashing Animations Part 2: How CSS Masking Can Add An Extra Dimension — Smashing Magazine

What if you could take your CSS animations beyond simple fades and slides — adding an extra dimension and a bit of old-school animation magic? In this article, pioneering author and web designer [Andy Clarke](https://stuffandnonsense.co.uk) will show you how masking can unlock new creative possibilities for CSS animations, making them feel more fluid, layered, and cinematic.

ACAndy ClarkeAndy Clarke·May 14, 2025Frontend
Frontend — The Height Enigma

The Height Enigma

One of the most perplexing and befuddling things in CSS for me, for many years, was the behaviour of percentage-based heights. Sometimes, seemingly at random, setting height: 100% would have no effect at all. When I finally figured out what was going on, it was like a puzzle piece snapping into place; everything made so much more sense! In this post, I’ll share the epiphany I had, and we’ll explor

JWJosh W. Comeau·May 12, 2025Frontend
Frontend — Smashing Animations Part 1: How Classic Cartoons Inspire Modern CSS — Smashing Magazine

Smashing Animations Part 1: How Classic Cartoons Inspire Modern CSS — Smashing Magazine

Have you ever thought about how the limitations of early cartoon animations might relate to web design today? From looping backgrounds to minimal frame changes, these retro animation techniques have surprising parallels to modern CSS. In this article, pioneering author and web designer [Andy Clarke](https://stuffandnonsense.co.uk) shows how he applied these principles to Emmy-winning composer Mike

ACAndy ClarkeAndy Clarke·May 7, 2025Frontend
Frontend — Masonry In CSS: Should Grid Evolve Or Stand Aside For A New Module? — Smashing Magazine

Masonry In CSS: Should Grid Evolve Or Stand Aside For A New Module? — Smashing Magazine

There were duelling proposals floating around for adding support for masonry-style layouts in CSS. In one corner is a proposal that extends the existing CSS Grid specification. In the other corner is a second proposal that sets up masonry as a standalone module. Well, not until recently. Now, there are three proposals with Apple WebKit’s “Item Flow” as the third option. The first two sides make st

GSGabriel ShoyomboGabriel Shoyombo·May 6, 2025Frontend
Frontend — CSS shape() Commands

CSS shape() Commands

The CSS shape() function recently gained support in both Chromium and WebKit browsers. It's a way of drawing complex shapes when clipping elements with the clip-path property.

GGGeoff GrahamGeoff Graham·May 2, 2025Frontend
Frontend — Revisiting Image Maps

Revisiting Image Maps

Let’s run through a quick refresher. Image maps date all the way back to HTML 3.2, where, first, server-side maps and then client-side maps defined clickable regions over an image using map and area elements.

ACAndy ClarkeAndy Clarke·April 30, 2025Frontend
Frontend — Next Level CSS Styling for Cursors

Next Level CSS Styling for Cursors

Custom cursors with CSS are great, but we can take things to the next level with JavaScript. Using JavaScript, we can transition between cursor states, place dynamic text within the cursor, apply complex animations, and apply filters.

DCDeclan ChidlowDeclan Chidlow·April 14, 2025Frontend
Frontend — CSS-Tricks Chronicles XLIII

CSS-Tricks Chronicles XLIII

This CSS-Tricks update highlights significant progress in the Almanac, recent podcast appearances, a new CSS counters guide, and the addition of several new authors contributing valuable content.

GGGeoff GrahamGeoff Graham·April 11, 2025Frontend
Frontend — Tailwind's @apply Feature is Better Than it Sounds

Tailwind's @apply Feature is Better Than it Sounds

Most of the time, people showcase Tailwind's @apply feature with one of Tailwind's single-property utilities (which changes a single CSS declaration). When showcased this way, @apply doesn't sound promising at all. So obviously, nobody wants to use it. Personally, I think Tailwind's @apply feature is better than described.

ZLZell LiewZell Liew·April 10, 2025Frontend
Frontend — CSS Carousels

CSS Carousels

Chrome has prototyped these features and released them in Chrome 135. Adam Argyle has a wonderful explainer over at the Chrome Developer blog. Kevin Powell has an equally wonderful video where he follows the explainer. This post is me taking notes from them.

GGGeoff GrahamGeoff Graham·April 9, 2025Frontend
Frontend — Using Manim For Making UI Animations — Smashing Magazine

Using Manim For Making UI Animations — Smashing Magazine

Animation makes things clearer, especially for designers and front-end developers working on UI, prototypes, or interactive visuals. Manim is a tool that lets you create smooth and dynamic animations, not just for the design field but also in math, coding, and beyond, to explain complex ideas or simply make everything a little bit more interactive.

JPJoas PambouJoas Pambou·April 8, 2025Frontend
Frontend — A New "Web" Readiness Report

A New "Web" Readiness Report

HTML 5 Readiness was a site that showed through a rainbow of colors the browser support for several web features. What about a new version?

JDJuan Diego RodríguezJuan Diego Rodríguez·April 4, 2025Frontend
Frontend — SMIL on?

SMIL on?

Well, it turns out that SVG's built-in animation features were never deprecated as planned. Sure, CSS and JavaScript are more than capable of carrying the load, but it's good to know that SMIL is not dead in the water as previously thought, and is actually well-supported.

GGGeoff GrahamGeoff Graham·April 2, 2025Frontend
Frontend — Crafting Strong DX With Astro Components and TypeScript

Crafting Strong DX With Astro Components and TypeScript

One thing we can do to help teams code consistently is provide type-checking so that all of the configurable options for a specific component are available while coding. Bryan demonstrates how he does this with TypeScript when working with Astro components.

BRBryan RobinsonBryan Robinson·April 1, 2025Frontend
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 — 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 — 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 — 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 — 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 — 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 — 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 — 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 — 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