Search

Nalezeno "Article": 1993

How to Make a “Raise the Curtains” Effect in CSS


“Raise the curtains” is what I call an effect where the background goes from dark to light on scroll, and the content on top also goes from light to dark while in a sticky position. Here’s an example where I … How to Make a “Raise the Curtains” Effect in CSS originally published...

CSS Custom Highlight API: The Future of Highlighting Text Ranges on the Web


Styling ranges of text in software is a very useful thing to be able to do. Thankfully, we have the CSS Custom Highlight API to look forward to because it represents the future of styling text ranges on the web.… CSS Custom Highlight API: The Future of Highlighting Text Ranges on the...

Web Component Pseudo-Classes and Pseudo-Elements are Easier Than You Think


We’ve discussed a lot about the internals of using CSS in this ongoing series on web components, but there are a few special pseudo-elements and pseudo-classes that, like good friends, willingly smell your possibly halitotic breath before you go … Web Component Pseudo-Classes...

When to Avoid the text-decoration Shorthand Property


In my recent article about CSS underline bugs in Chrome, I discussed text-decoration-thickness and text-underline-offset, two relatively new and widely-supported CSS properties that give us more control over the styling of underlines. Let me demonstrate the usefulness of … When to Avoid...

Explain the First 10 Lines of Twitter’s Source Code to Me


For the past few weeks, I’ve been hiring for a senior full-stack JavaScript engineer at my rental furniture company, Pabio. Since we’re a remote team, we conduct our interviews on Zoom, and I’ve observed that some developers are not … Explain the First 10 Lines of Twitter’s Source Code...

CSS Database Queries? Sure We Can!


Kinda silly sounding, isn’t it? CSS database queries. But, hey, CSS is capable of talking to other languages in the sense that it can set the values of things that they can read. Plus, CSS can request other files, and … CSS Database Queries? Sure We Can! originally published...

5 Accessibility Quick Wins You Can Implement Today


Let’s face it: building an AA or AAA-accessible product can be quite daunting. Luckily, having an accessible product isn’t all-or-nothing. Even seemingly small improvements can have nice quality of life benefits for many people. In that spirit, here are five … 5 Accessibility Quick Wins...

Reliably Send an HTTP Request as a User Leaves a Page


On several occasions, I’ve needed to send off an HTTP request with some data to log when a user does something like navigate to a different page or submit a form. Consider this contrived example of sending some information to … Reliably Send an HTTP Request as a User Leaves a Page originally...

A Complete Guide to CSS Cascade Layers


This is your complete guide to CSS cascade layers, a CSS feature that allows us to define explicit contained layers of specificity, so that we have full control over which styles take priority in a project without relying on specificity … A Complete Guide to CSS Cascade Layers originally...

Comparing Node JavaScript to JavaScript in the Browser


Being able to understand Node continues to be an important skill if you’re a front-end developer. Deno has arrived as another way to run JavaScript outside the browser, but the huge ecosystem of tools and software built with Node mean … Comparing Node JavaScript to JavaScript in the Browser...

Subsetting Font Awesome to Improve Performance


Font Awesome is an incredibly popular icon library. Unfortunately, it’s somewhat easy to use in a way that results in less-than-ideal performance. By subsetting Font Awesome, we can remove any unused glyphs from the font files it provides. This will … Subsetting Font Awesome to Improve...

An Auto-Filling CSS Grid With Max Columns of a Minimum Size


Within Drupal 10 core, we’re implementing a new auto-filling CSS Grid technique that I think is cool enough to share with the world. The requirements are: The user specifies a maximum number of columns. This is the auto-filling grid’s “natural” … An Auto-Filling CSS Grid With Max Columns...

GSAP Flip Plugin for Animation


Greensock made the GSAP Flip plugin free in the 3.9 release. FLIP is an animation concept that helps make super performance state-change animations. Ryan Mulligan has a good blog post: FLIP, coined by Paul Lewis, is an … GSAP Flip Plugin for Animation originally published...

6 Creative Ideas for CSS Link Hover Effects


Creating CSS link hover effects can add a bit of flair to an otherwise bland webpage. If you’ve ever found yourself stumped trying to make a slick hover effect, then I have six CSS effects for you to take and … 6 Creative Ideas for CSS Link Hover Effects originally published on CSS-Tricks....

Getting Started With the File System Access API


The File System Access API is a web API that allows read and write access to a user’s local files. It unlocks new capabilities to build powerful web applications, such as text editors or IDEs, image editing tools, improved … Getting Started With the File System Access API originally...

9 New React and JavaScript Links for February 2022


Every now and then, I find that I’ve accumulated a bunch of links about various things I find interesting. Like React and JavaScript! Here’s a list of nine links to other articles about them that I’ve been saving up and … 9 New React and JavaScript Links for February 2022 originally...

Multi-Value CSS Properties With Optional Custom Property Values


Imagine you have an element with a multi-value CSS property, such as transform: optional custom property values: .el { transform: translate(100px) scale(1.5) skew(5deg); } Now imagine you don’t always want all the transform values to be applied, so some … Multi-Value CSS Properties With...

A Whistle-Stop Tour of 4 New CSS Color Features


I was just writing in my “What’s new in since CSS3?” article about recent and possible future changes to CSS colors. It’s weirdly a lot. There are just as many or more new and upcoming ways to define colors than … A Whistle-Stop Tour of 4 New CSS Color Features...

Helpful Tips for Starting a Next.js Chrome Extension


I recently rewrote one of my projects — Minimal Theme for Twitter — as a Next.js Chrome extension because I wanted to use React for the pop-up. Using React would allow me to clearly separate my extension’s pop-up component and … Helpful Tips for Starting a Next.js Chrome Extension originally...

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