Search

Nalezeno "supporter": 1128

The Optional Chaining Operator, “Modern” Browsers, and My Mom


Jim Nielsen’s mom couldn’t open a website. Jim worked on confirming the issue and documented how he got to the bottom of it: “[…] well it can’t be a browser issue. It’s not like my Mom is using Internet Explorer! … The Optional Chaining Operator, “Modern” Browsers,...

Git: Switching Unstaged Changes to a New Branch


I’m always on the wrong branch. I’m either on master or main working on something that should be on a fix or feature branch. Or I’m on the last branch I was working on and should have cut a new … Git: Switching Unstaged Changes to a New Branch originally published...

Demystifying TypeScript Discriminated Unions


TypeScript is a wonderful tool for writing JavaScript that scales. It’s more or less the de facto standard for the web when it comes to large JavaScript projects. As outstanding as it is, there are some tricky pieces for the … Demystifying TypeScript Discriminated Unions originally published...

Build, Ship, & Maintain Design Systems with Backlight


(This is a sponsored post.) Design systems are an entire job these days. Agencies are hired to create them. In-house teams are formed to handle them, shipping them so that other teams can use them and helping ensure they … Build, Ship, & Maintain Design Systems with Backlight originally...

How to Cycle Through Classes on an HTML Element


Say you have three HTML classes, and a DOM element should only have one of them at a time: <div class="state-1"</div<div class="state-2"</div<div class="state-3"</div Now your job is to rotate them. That is, cycle through classes … How to Cycle Through Classes on...

Fancy CSS Borders Using Masks


Have you ever tried to make CSS borders in a repeating zig-zag pattern? Like where a colored section of a website ends and another differently colored section begins — not with a straight line, but angled zig zags, rounded humps, … Fancy CSS Borders Using Masks originally published...

How Do You Handle Component Spacing in a Design System?


Say you’ve got a <Card /> component. It’s highly likely it shouldn’t be butted right up against any other components with no spacing around it. That’s true for… pretty much every component. So, how do you handle component spacing in … How Do You Handle...

How to Make a Scroll-Triggered Animation With Basic JavaScript


A little bit of animation on a site can add some flair, impress users, and get their attention. You could have them run, no matter where they are on the page, immediately when the page loads. But what if your … How to Make a Scroll-Triggered Animation With Basic JavaScript originally...

Why Don’t Developers Take Accessibility Seriously?


You know that joke, “Two front-end developers walk into a bar and find they have nothing in common”? It’s funny, yet frustrating, because it’s true. This article will present three different perspectives on accessibility in web design and development. Three … Why Don’t Developers Take...

The CSS from-font Value Explained in 4 Demos


I was doing my Advent of UI Components, and I stumbled upon the from-font value for the text-decoration-thickness CSS property. I was curious about it, so I did a little research and I think what I found (and learned) … The CSS from-font Value Explained in 4 Demos originally published...

Using SVG in WordPress (2 Helpful Plugin Recommendations)


SVG is a great image format, so it's nice to able to use it in WordPress. If you're looking to be using SVG in WordPress. , we've got you covered here with all the best options. Using SVG in WordPress (2 Helpful Plugin Recommendations) originally published on CSS-Tricks. You should get...

Context-Aware Web Components Are Easier Than You Think


Another aspect of web components that we haven’t talked about yet is that a JavaScript function is called whenever a web component is added or removed from a page. These lifecycle callbacks can be used for many things, including making … Context-Aware Web Components Are Easier Than You Think...

A Complete Beginner’s Guide to npm


(This is a sponsored post.) I remember vividly a period early in my coding career when I began to feel that things were changing away from what I knew, and headed towards a more complex set of tools and … A Complete Beginner’s Guide to npm originally published on CSS-Tricks. You should...

What the Heck Does “npm” Mean?


One of the things that makes this new, tooling-heavy era of front-end development so seemingly hard to understand at first is that, while we often call things by a singular name, they tend to be actually comprised of several different … What the Heck Does “npm” Mean? originally published...

What the Heck is the Command Line?


Now that we know what npm stands for and have a super general idea of what it does and how it fits into web development, we ought to spend a little bit of time looking at the command line, because … What the Heck is the Command Line? originally published on CSS-Tricks. You should get...

What the Heck is Node?


(This is a sponsored post.) Here’s what you need to know about Node.js (or simply Node) and how it relates to npm right off the bat: Node is JavaScript, but as a server-side language. This is possible because of … What the Heck is Node? originally published on CSS-Tricks. You should...

What the Heck is a Package Manager?


If you’re keeping score, so far in this npm guide we’ve developed a general understanding of what npm is—notably, that it stands for Node Package Manager. In the process, we’ve discussed the importance of the command line and how it’s … What the Heck is a Package Manager?...

How the Heck Do You Install npm?


Feel like you have a pretty good idea of what a package manager is? We’ve certainly covered a lot of ground getting familiar with all the terms and concepts of package managers, but I’d say it’s high time we actually … How the Heck Do You Install npm? originally published on CSS-Tricks....

How the Heck Do You Install npm Packages?


By now, you’re becoming quite knowledgeable with npm! So far, we’ve broken down the three letters in “npm” to gain a better understand of Node and package managers. In the previous chapter, we even installed Node and npm while … How the Heck Do You Install npm Packages? originally published...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace