Search

Nalezeno "Article": 2877

On Auto-Generated Atomic CSS


Robin Weser’s “The Shorthand-Longhand Problem in Atomic CSS” in an interesting journey through a tricky problem. The point is that when you take on the job of converting something HTML and CSS-like into actual HTML and CSS, there are edge … The post On Auto-Generated Atomic...

3 Approaches to Integrate React with Custom Elements


In my role as a web developer who sits at the intersection of design and code, I am drawn to Web Components because of their portability. It makes sense: custom elements are fully-functional HTML elements that work in all modern … The post 3 Approaches to Integrate React with Custom Elements...

Proper Tabbing to Interactive Elements in Firefox on macOS


I just had to debug an issue with focusable elements in Firefox. Someone reported to me that when tabbing to a certain element within a CodePen embed, it shot the scroll position to the top of the page (WTF?!). So, … The post Proper Tabbing to Interactive Elements in Firefox on macOS...

Building an Ethereum app using Redwood.js and Fauna


With the recent climb of Bitcoin’s price over 20k $USD, and to it recently breaking 30k, I thought it’s worth taking a deep dive back into creating Ethereum applications. Ethereum, as you should know by now, is a public (meaning, … The post Building an Ethereum app using Redwood.js and Fauna...

How to Make GraphQL and DynamoDB Play Nicely Together


Serverless, GraphQL, and DynamoDB are a powerful combination for building websites. The first two are well-loved, but DynamoDB is often misunderstood or actively avoided. It’s often dismissed by folks who consider it only worth the effort “at scale.”… The post How to Make GraphQL...

Dynamic, Conditional Imports


With ES Modules, you can natively import other JavaScript. Like confetti, duh: import confetti from 'https://cdn.skypack.dev/canvas-confetti'; confetti(); That import statement is just gonna run. There is a pattern to do it conditionally though. It’s like this: (async () … The post...

Two Issues Styling the Details Element and How to Solve Them


In the not-too-distant past, even basic accordion-like interactions required JavaScript event listeners or some CSS… trickery. And, depending on the solution used, editing the underlying HTML could get complicated. Now, the <details> and <summary> elements (which combine to form...

A (terrible?) way to do footnotes in HTML


Terence Eden poked around with a way to do footnotes using the <details>/<summary> elements. I think it’s kind of clever. Rather than a hyperlink that jumps down to explain the footnote elsewhere, the details are right there next … The post A (terrible?) way to...

Fixing Smooth Scrolling with Find-on-Page


Back when we released the v17 design (we’re on v18 now) of this site. I added html { scroll-behavior: smooth; } to the CSS. Right away, I got comments like this (just one example): … when you control+f or … The post Fixing Smooth Scrolling with Find-on-Page appeared first...

I Just Wanna Make Sure You Understand the WordPress.com Business Plan


WordPress.com is where you go to use WordPress that is completely hosted for you. You don’t have to worry about anything but building your site. There is a free plan to get started with, and paid plans that offer more … The post I Just Wanna Make Sure You Understand the WordPress.com...

How to Add Commas Between a List of Items Dynamically with CSS


Imagine you have a list of items. Say, fruit: Banana, Apple, Orange, Pear, Nectarine We could put those commas (,) in the HTML, but let’s look at how we could do that in CSS instead, giving us an extra level … The post How to Add Commas Between a List of Items Dynamically with CSS appeared...

Building Flexible Components With Transparency


Good thinking from Paul Herbert on the Cloudfour blog about colorizing a component. You might look at a design comp and see a card component with a header background of #dddddd, content background of #ffffff, on an overall … The post Building Flexible Components With Transparency appeared...

Careful When Changing the Display of `summary`


I got a very helpful bug report the other day (thanks Kilian!) about the <details> element in a blog post of mine not showing the default ▶ icon, and thus looking rather like any ol’ random <p>. It … The post Careful When Changing the Display of `summary`...

Flash’s Web Tech Legacy


Tiffany B. Brown on how Flash paved the way for some things we might think of as fairly modern web technologies: Flash wasn’t just good for playing multimedia. It was also good for manipulating it. Using ActionScript, you could pan … The post Flash’s Web Tech Legacy...

Animating with Lottie


I believe animation on the web is not only fun, but engaging in such a way that it has converted site visitors into customers. Think of the “Like” button on Twitter. When you “like” a tweet, tiny colorful bubbles … The post Animating with Lottie appeared first on CSS-Tricks. You can support...

CSS Snapshot 2020


I think it’s great that the CSS Working Group does these. It’s like planting a flag in the ground saying this is what CSS looks like at this specific point in time. They do specifically say it’s not for … The post CSS Snapshot 2020 appeared first on CSS-Tricks. You...

Painters Tape and Fault Tolerance


Snipping the top bit of Nicholas C. Zakas’s Top of the Month newsletter (go sign up!), with permission. One of my favorite things in the world is painters tape (also called masking tape). It seems like something silly: some tape … The post Painters Tape and Fault Tolerance appeared...

`aspect-ratio` is going to deprecate FitVids


Jen was just tweetin’ about how the latest Safari Technical Preview has aspect-ratio. Looks like Chrome and Firefox both have it behind a flag, so with Safari joining the party, we’ll all have it soon. I played with it … The post `aspect-ratio` is going to deprecate FitVids...

Svelte and Spring Animations


Spring animations are a wonderful way to make UI interactions come to life. Rather than merely changing a property at a constant rate over a period of time, springs allow us to move things using spring physics, which gives the … The post Svelte and Spring Animations appeared first...

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