Search

Nalezeno "Article": 1993

SVGcode for “Live Tracing” Raster Images


Say you have a bitmap graphic — like a JPG, PNG, or GIF — and you wish it was vector, like SVG. What do you do? You could trace it yourself in some kind of design software. Or tools within … SVGcode for “Live Tracing” Raster Images originally published on CSS-Tricks. You should...

How to Make CSS Slanted Containers


I was updating my portfolio and wanted to use the forward slash (/) as a visual element for the site’s main layout. I hadn’t attempted to create a slanted container in CSS before, but it seemed like it … How to Make CSS Slanted Containers originally published on CSS-Tricks. You should...

No Motion Isn’t Always prefers-reduced-motion


There is a code snippet that I see all the time when the media query prefers-reduced-motion is talked about. Here it is: @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms...

Replace JavaScript Dialogs With the New HTML Dialog Element


You know how there are JavaScript dialogs for alerting, confirming, and prompting user actions? Say you want to replace JavaScript dialogs with the new HTML dialog element. Let me explain. I recently worked on a project with a lot of … Replace JavaScript Dialogs With the New HTML Dialog...

CSS Scroll Snap Slide Deck That Supports Live Coding


Virtual conferences have changed the game in terms of how a presenter is able to deliver content to an audience. At a live event it’s likely you just have your laptop, but at home, you may have multiple monitors so … CSS Scroll Snap Slide Deck That Supports Live Coding originally published...

A Deep Introduction to WordPress Block Themes


The relatively new WordPress editor, also known as the WordPress Block Editor, always under development via the Gutenberg plugin, has been with us since 2018. You can use the block editor on any WordPress theme, provided the theme … A Deep Introduction to WordPress Block Themes originally...

The Making of Atomic CSS: An Interview With Thierry Koblentz


I interviewed Thierry Koblentz, creator of Atomic CSS, to understand the history and background that led to making of the popular CSS framework. Thierry, now retired, has vast experience writing CSS at large scale and has previously worked … The Making of Atomic CSS: An Interview With...

User Registration and Auth Using Firebase and React


The ability to identify users is vital for maintaining the security of any applications. Equally important is the code that’s written to manage user identities, particularly when it comes to avoiding loopholes for unauthorized access to data held by an … User Registration and Auth Using...

“Evergreen” Does Not Mean Immediately Available


I have a coworker who is smart, capable, and technologically-literate. Like me, they work on the web full-time. When they are sharing their screen in a meeting, I find myself disassociating fixating on the red update button in their copy … “Evergreen” Does Not Mean Immediately Available...

Notes on Reverse-Scrolling Columns With CSS Scroll-Timeline


Lemme do this one quick-hits style: Mary Lou published a quintessentially-Codrops-y demo called Alternate Column Scroll. The scrolling effect is powered by Locomotive Scroll, which we’ve coincidentally covered before. Bramus has been exploring native CSS scrolling effects … Notes...

The Relevance of TypeScript in 2022


It’s 2022. And the current relevance of TypeScript is undisputed. TypeScript has dominated the front-end developer experience by many, many accounts. By now you likely already know that TypeScript is a superset of JavaScript, building on JavaScript by adding … The Relevance of TypeScript...

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...

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