Home/Frontend
Topic

Frontend

2,065 articles on Frontend.

13,309 articles
Frontend — Decoding The SVG path Element: Curve And Arc Commands — Smashing Magazine

Decoding The SVG path Element: Curve And Arc Commands — Smashing Magazine

On her quest to teach you how to code vectors by hand, Myriam Frisano’s second installment of a `path` deep dive explores the most complex aspects of SVG’s most powerful element. She’ll help you understand the underlying rules and function of how curves and arcs are constructed. By the end of it, your toolkit is ready to tackle all types of tasks required to draw with code — even if some of the li

MFMyriam FrisanoMyriam Frisano·June 23, 2025Frontend
Frontend — Color Everything in CSS

Color Everything in CSS

An introduction to "Color spaces", "Color models", "Color gamuts," and basically all of the "Color somethings" in CSS.

JDJuan Diego RodríguezJuan Diego Rodríguez·June 20, 2025Frontend
Frontend — CSS Color Functions

CSS Color Functions

CSS has a number of functions that can be used to set, translate, and manipulate colors. Learn what they are and how they are used with a bunch of examples to get you started.

SFSunkanmi FafoworaSunkanmi Fafowora·June 19, 2025Frontend
Frontend — How to Keep Up With New CSS Features

How to Keep Up With New CSS Features

How do you stay informed of new CSS features when the language evolves quickly and information is spread all around the web? Sacha Greif has some tips from his work running an annual survey focused on new CSS features.

SGSacha GreifSacha Greif·June 17, 2025Frontend
Frontend — Quick Hit #50

Quick Hit #50

A freshly updated two-day workshop on developing games with CSS by Kevin Powell and Amit Sheen is now available (and discounted for a limited time).

GGGeoff GrahamGeoff Graham·June 17, 2025Frontend
Frontend — Breaking Boundaries: Building a Tangram Puzzle With (S)CSS

Breaking Boundaries: Building a Tangram Puzzle With (S)CSS

We put it to the test and it turns out Sass can replace JavaScript, at least when it comes to low-level logic and puzzle behavior. With nothing but maps, mixins, functions, and a whole lot of math, we managed to bring our Tangram puzzle to life, no JavaScript required.

SSSladjana StojanovicSladjana Stojanovic·June 12, 2025Frontend
Frontend — Creating The “Moving Highlight” Navigation Bar With JavaScript And CSS — Smashing Magazine

Creating The “Moving Highlight” Navigation Bar With JavaScript And CSS — Smashing Magazine

In this tutorial, Blake Lundquist walks us through two methods of creating the “moving-highlight” navigation pattern using only plain JavaScript and CSS. The first technique uses the `getBoundingClientRect` method to explicitly animate the border between navigation bar items when they are clicked. The second approach achieves the same functionality using the new View Transition API.

BLBlake LundquistBlake Lundquist·June 11, 2025Frontend
Frontend — Partial Keyframes

Partial Keyframes

CSS Keyframe animations are so much more powerful than most developers realize. In this tutorial, I’ll show you something that completely blew my mind, a technique that makes our keyframe animations so much more reusable and dynamic! 🤯

JWJosh W. Comeau·June 10, 2025Frontend
Frontend — Creating an Auto-Closing Notification With an HTML Popover

Creating an Auto-Closing Notification With an HTML Popover

The HTML popover attribute transforms elements into top-layer elements that can be opened and closed with a button or JavaScript. Popovers can be dismissed a number of ways, but there is no option to auto-close them. Preethi has a technique you can use.

PPreethiPreethi·June 9, 2025Frontend
Frontend — Decoding The SVG path Element: Line Commands — Smashing Magazine

Decoding The SVG path Element: Line Commands — Smashing Magazine

SVG is easy — until you meet `path`. However, it’s not as confusing as it initially looks. In this first installment of a pair of articles, Myriam Frisano aims to teach you the basics of `` and its sometimes mystifying commands. With simple examples and visualizations, she’ll help you understand the easy syntax and underlying rules of SVG’s most powerful element so that by the end, you’re fully ab

MFMyriam FrisanoMyriam Frisano·June 9, 2025Frontend
Frontend — Better CSS Shapes Using shape() — Part 3: Curves

Better CSS Shapes Using shape() — Part 3: Curves

This is the third article in a series about the CSS shape() function. We've covered drawing lines and arcs in previous articles and, this time, we look specifically at the curve command and how to use it for drawing complex shapes.

TATemani AfifTemani Afif·June 6, 2025Frontend
Frontend — Exploring the CSS contrast-color() Function… a Second Time

Exploring the CSS contrast-color() Function… a Second Time

The contrast-color() function doesn’t check color contrast, but rather it outright resolves to either black or white (whichever one contrasts the most with your chosen color). Safari Technology Preview recently implemented it and we explore its possible uses in this article.

DSDaniel SchwarzDaniel Schwarz·June 5, 2025Frontend
Frontend — The State of CSS 2025 Survey is out!

The State of CSS 2025 Survey is out!

The State of CSS 2025 Survey dropped a few days ago, and besides anticipating the results, it's exciting to see a lot of the new things shipped to CSS reflected in the questions.

JDJuan Diego RodríguezJuan Diego Rodríguez·June 5, 2025Frontend
Frontend — Getting Creative With HTML Dialog

Getting Creative With HTML Dialog

So, how can you take dialogue box design beyond the generic look of frameworks and templates? How can you style them to reflect a brand’s visual identity and help to tell its stories? Here’s how I do it in CSS using ::backdrop, backdrop-filter, and animations.

ACAndy ClarkeAndy Clarke·June 3, 2025Frontend
Frontend — What We Know (So Far) About CSS Reading Order

What We Know (So Far) About CSS Reading Order

The reading-flow and reading-order proposed CSS properties are designed to specify the source order of HTML elements in the DOM tree, or in simpler terms, how accessibility tools deduce the order of elements. You’d use them to make the focus order of focusable elements match the visual order, as outlined in the Web Content Accessibility Guidelines (WCAG 2.2).

DSDaniel SchwarzDaniel Schwarz·May 27, 2025Frontend
Frontend — SVG to CSS Shape Converter

SVG to CSS Shape Converter

Shape master Temani Afif has what might be the largest collection of CSS shapes on the planet with all the tools to generate them on the fly. There's a mix of

GGGeoff GrahamGeoff Graham·May 21, 2025Frontend
Frontend — HTML Email Accessibility Report 2025

HTML Email Accessibility Report 2025

Some weekend reading on the heels of Global Accessibility Awareness Day (GAADM), which took place yesterday. The Email Markup Consortium (EMC) released its

GGGeoff GrahamGeoff Graham·May 16, 2025Frontend
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 — Quick Hit #47

Quick Hit #47

Sara Soueidan evaluated the accessibility of CSS Carousels — which are billed as "accessible by default" — and I need some time to wrap my head around her

GGGeoff GrahamGeoff Graham·May 8, 2025Frontend
Frontend — Why is Nobody Using the hwb() Color Function?

Why is Nobody Using the hwb() Color Function?

Okay, nobody is an exaggeration, but have you seen the stats for hwb()? They show a steep decline, and after working a lot on color in the CSS-Tricks almanac, I’ve just been wondering why that is.

SFSunkanmi FafoworaSunkanmi Fafowora·May 7, 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 — The Lost CSS Tricks of Cohost.org

The Lost CSS Tricks of Cohost.org

In this post, Blackle Mori shows you a few of the hacks found while trying to push the limits of Cohost’s HTML support. Use these if you dare, lest you too get labelled a CSS criminal.

BMBlackle Mori·April 24, 2025Frontend
Frontend — Using CSS backdrop-filter for UI Effects

Using CSS backdrop-filter for UI Effects

Tips and tricks on utilizing the CSS backdrop-filter property to style user interfaces. You’ll learn how to layer backdrop filters among multiple elements, and integrate them with other CSS graphical effects to create elaborate designs.

PPreethiPreethi·April 16, 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 — “Just use Vite”… with the Workers runtime

“Just use Vite”… with the Workers runtime

The Cloudflare Vite plugin integrates Vite, one of the most popular build tools for web development, with the Workers runtime. Today, we are announcing the 1.0 release and official support for React Router v7.

CCloudflare·April 8, 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