Different Approaches for Creating a Staggered Animation

Animating elements, at its most basic, is fairly straightforward. Define the keyframes. Name the animation. Call it on an element. But sometimes we need | Continue reading


@css-tricks.com | 5 years ago

Using Percy to add visual testing to a Jekyll site

Visual testing is the automated process of reviewing software from a purely visual standpoint. Instead of testing the code underneath, visual testing is | Continue reading


@css-tricks.com | 5 years ago

Three Predictions From the State of CSS 2019 Survey

Running a developer survey like the State of CSS is a multi-stage process. First, you need to collect the data. Then, you process it into a usable shape. | Continue reading


@css-tricks.com | 5 years ago

Getting to Know the useReducer React Hook

useReducer is one of a handful of React hooks that shipped in React 16.7.0. It accepts a reducer function with the application initial state, returns the | Continue reading


@css-tricks.com | 5 years ago

Spam Detection APIs

I was trying to research the landscape of these the other day — And by research, I mean light Googling and asking on Twitter. Weirdly, very little | Continue reading


@css-tricks.com | 5 years ago

Building a Conference Schedule with CSS Grid

It’s hard to beat the feeling of finding a perfect use for a new technology. You can read every handy primer under the sun and ooh-and-ahh at flashy | Continue reading


@css-tricks.com | 5 years ago

Reduced Motion Picture Technique, Take Two

Did you see that neat technique for using the element with to serve an animated image (or not) based on a prefers-reduced-motion media query? After we | Continue reading


@css-tricks.com | 5 years ago

Weekly Platform News: Mozilla’s AV1 Encoder, Samsung One UI CSS, DOM Matches Method

In this week's weekly roundup, Vimeo and Mozilla partner up on a video encoding format, how to bind instructions to to form fields using aria labels, the DOM has a matching function, and Samsung is working on its own CSS library. | Continue reading


@css-tricks.com | 5 years ago

Managing WordPress Metadata in Gutenberg Using a Sidebar Plugin

WordPress released their anticipated over to the post editor, nicknamed Gutenberg, which is also referred to as the block editor. It transforms a | Continue reading


@css-tricks.com | 5 years ago

So, you think you’ve got project management nailed down

Who needs a project manager? You're an organized person who can keep track of your own work, right? Wrong. Well, wrong if you're part of a team. The thing | Continue reading


@css-tricks.com | 5 years ago

How to Increase Your Page Size by 1,500% with webpack and Vue

What we don’t have are enough articles showing you how to increase your page size. In fact, the only article I could find was this one from the Geek Squad which ended up being about making the font size bigger. This is a good start, but I think we can do better. | Continue reading


@css-tricks.com | 5 years ago

How to Section Your HTML

The sectioning elements in HTML5 are , , , and . is also kind of a sectioning element since all content lying inside of it is part of the default document | Continue reading


@css-tricks.com | 5 years ago

If you can build a site with WordPress.com, you should build your site on WordPress.com.

That’s what I like to tell people. I’ve seen too many websites die off, often damaging the company along the way because the technical debt of hosting and | Continue reading


@css-tricks.com | 5 years ago

Managing State in React using Unstated-Next

In a previous post, we saw how to manage state using Unstated. As you might recall, Unstated uses React’s built-in setState to allow you create components | Continue reading


@css-tricks.com | 5 years ago

Magic Numbers in CSS

Despite the super fun sounding name, magic numbers are a bad thing. It is an old school programming term for "unnamed numerical constant". As in, just | Continue reading


@css-tricks.com | 5 years ago

Components, yo.

I see VuePress just went 1.0. Explained simply, it's a static site generator based on Vue. But of course, you work in Vue, which means you work in | Continue reading


@css-tricks.com | 5 years ago

Weekly Platform News: CSS Scroll Snap, Opera GX, PWA Install Icon

In this week's roundup, Chrome is adding an install option for Progressive Web Apps, Opera GX comes to Windows, the ECMAScript proposals get an update, and CSS Scroll Snap is coming to a Firefox browser near you. | Continue reading


@css-tricks.com | 5 years ago

Drawing Realistic Clouds with SVG and CSS

Greek mythology tells the story of Zeus creating the cloud nymph, Nephele. Like other Greek myths, this tale gets pretty bizarre and X-rated. Here’s a | Continue reading


@css-tricks.com | 5 years ago

A11Y with Lindsey

Lindsey Kopacz has a wonderful blog about accessibility. I've seen a number of her articles making the rounds lately and I was like, dang I better make | Continue reading


@css-tricks.com | 5 years ago

Using Cypress to Write Tests for a React Application

End-to-end tests are written to assert the flow of an application from start to finish. Instead of handling the tests yourself — you know, manually | Continue reading


@css-tricks.com | 5 years ago

Everything You Need to Know About Date in JavaScript

Date is weird in JavaScript. It gets on our nerves so much that we reach for libraries (like Date-fns and Moment) the moment (ha!) we need to work with | Continue reading


@css-tricks.com | 5 years ago

Level up your .sort game

Sorting is a super handy JavaScript method that can display the values of an array in a certain order. Whether that’s real estate listings by price, | Continue reading


@css-tricks.com | 5 years ago

Using DevTools to Improve the UX Design to Development Process

I’d like to tell you how I see code and design intersect and support one another. Specifically, I want to cover how designers can use code in their | Continue reading


@css-tricks.com | 5 years ago

Weekly Platform News: Feature Policy, ECMAScript i18n API, Packaged PWAs

Šime posts regular content for web developers on webplatform.news. New Feature Policy API in Chrome Pete LePage: You can use the | Continue reading


@css-tricks.com | 5 years ago

What if we got aspect-ratio sized images by doing almost nothing?

Say you have an image you're using in an that is 800x600 pixels. Will it actually display as 800px wide on your site? It's very likely that it will not. | Continue reading


@css-tricks.com | 5 years ago

How to Use the Web Share API

The Web Share API is one that has seemingly gone under the radar since it was first introduced in Chrome 61 for Android. In essence, it provides a way to | Continue reading


@css-tricks.com | 5 years ago

JAMstack? More like SHAMstack.

I'm a fan of the whole JAMstack thing. It seems like a healthy web movement. I'm looking forward to both of the upcoming conferences. Of any web trend, | Continue reading


@css-tricks.com | 5 years ago

Movin’ Modals Along a Path

Modals always be just appearin'. You might see one once in a while that slides in from one of the edges, or uses some kind of scale/opacity thing to | Continue reading


@css-tricks.com | 5 years ago

Creating Animations Using React Spring

Have you ever needed animation in your React application? Traditionally, implementing animation has not an easy feat to accomplish. But now, thanks to | Continue reading


@css-tricks.com | 5 years ago

Do you need an ICON ONLY button without screwing up the accessibility?

The first consideration is: do you really? If you can, having text next to your icons is proven over and over again to be the most accessible and clearest | Continue reading


@css-tricks.com | 5 years ago

Prevent Page Scrolling When a Modal is Open

Please stop me if you've heard this one before. You open a modal, scroll through it, close it, and wind up somewhere else on the page than you were when | Continue reading


@css-tricks.com | 5 years ago

Material Theming: Making Material Your Own!

The web is a beautiful, expressive medium that’s evolved over time as trends and technology have changed. Moments of delight and flair are what set | Continue reading


@css-tricks.com | 5 years ago

Implementing Private Variables In JavaScript

JavaScript (or ECMAScript) is the programming language that powers the web. Created in May 1995 by Brendan Eich, it’s found its place as a widely-used and | Continue reading


@css-tricks.com | 5 years ago

Weekly Platform News: Favicon Guidelines, Accessibility Testing, Web Almanac

In this week's news, Google defines guidelines for favicons, a new a11y testing tool from The Paciello Group, and changes to how the W3C plans to engage the community, plus more. | Continue reading


@css-tricks.com | 5 years ago

A Practical Use Case for Vue Render Functions: Building a Design System Typography Grid

This post covers how I built a typography grid for a design system using Vue render functions. Here’s the demo and the code. I used render functions | Continue reading


@css-tricks.com | 5 years ago

Customer Satisfaction Surveys with Wufoo

I was once tasked to create a makeshift customer service survey that would allow an employee to receive a customer call and send a survey to the custom | Continue reading


@css-tricks.com | 5 years ago

A Quick Look at the First Public Working Draft for Color Adjust Module 1

We've been talking a lot about Dark Mode around here ever since Apple released it as a system setting in MacOS 10.14 and subsequently as part of Safari. | Continue reading


@css-tricks.com | 5 years ago

Creating Interactive Maps in WordPress with MapSVG

The MapSVG plugin for WordPress allows you to create feature-rich, interactive maps quickly and through a smart admin UI. Interactive maps are a common | Continue reading


@css-tricks.com | 5 years ago

A Complete Guide to CSS Grid Layout

CSS Grid Layout is the most powerful layout system available in CSS. It is a 2-dimensional system, meaning it can handle both columns and rows, unlike | Continue reading


@css-tricks.com | 5 years ago

Color contrast accessibility tools

Accessibility is all the rage these days, specifically when it comes to color contrast. I’ve stumbled upon a couple of tools this week that I think are | Continue reading


@css-tricks.com | 5 years ago

Using the Grid Shepherd Technique to Order Data with CSS

Shepherds are good at tending to their sheep, bringing order and structure to their herds. Even if there are hundreds of those wooly animals, a shepherd | Continue reading


@css-tricks.com | 5 years ago

Prioritizing

You're faced with a lot of decisions in everyday work. There are multiple tasks calling for your focus, and you can burn daylight or even burn out trying | Continue reading


@css-tricks.com | 5 years ago

Weekly Platform News: Mozilla WebThings, Internet Explorer mode, GraphQL

In this week's news: Mozilla WebThings provides complete privacy for user data, an Internet Explorer mode is coming to Edge, and other interesting articles. | Continue reading


@css-tricks.com | 5 years ago

The Power of Serverless v2.0! (Now an Open-Source Gatsby Site Hosted on Netlify)

I created a website called The Power of Serverless for Front-End Developers over at thepowerofserverless.info a little while back while I was learning | Continue reading


@css-tricks.com | 5 years ago

The Browser Can Remember Edited Content

You can make the text inside any HTML element editable by adding the contenteditable attribute. Hey, I'm like a textarea kinda now! I wouldn't say there | Continue reading


@css-tricks.com | 5 years ago

Getting Started with React Testing Library

I can guess what you are thinking: another React testing library? So many have already been covered here on CSS-Tricks (heck, I’ve already posted one | Continue reading


@css-tricks.com | 5 years ago

What Does it Mean to Be “Full Stack”?

I was asked this recently by a fellow developer who was at the same web tech conference I was at. This developer had met a lot of new people who literally | Continue reading


@css-tricks.com | 5 years ago

How I Use CleanMyMac X

: I'm a lifelong Mac user. Ever since our family upgraded from a Commodore 128 to an Apple Macintosh Performa 636 (CD) when I was in middle school, I've | Continue reading


@css-tricks.com | 5 years ago