Search
Maybe there kinda is background-opacity?
15.12.2021
I was reading Jake’s “Cross-fading any two DOM elements is currently impossible” which is a wonderfully nerdy deep dive into how there is no real way to literally cross-fade elements. Yeah, you can animate both of their opacities, but even …
Between Tyler The Creator and Rosalia, GTA Online's Expanded Radio Stations Will Be Full of Bangers
13.12.2021
Hot off the heels of last week’s announcement about Grand Theft Auto Online’s next major update, Rockstar has provided details on what new and old music is coming to the game to accompany the fresh story content. As part of an upcoming update, titled The Contract, GTA Online will see one brand-new...
Cash (Tiny jQuery Alternative)
11.10.2021
The README for Cash is straightforward:
Cash is an absurdly small jQuery alternative for modern browsers (IE11+) that provides jQuery-style syntax for manipulating the DOM. Utilizing modern browser features to minimize the codebase, developers can use the familiar chainable methods
…
The...
Resources aren’t requested by CSS, but by the DOM
21.9.2021
This is a good tweet from Harry:
Simple yet significant thing all developers should keep in mind: CSS resources (fonts, background images) are not requested by your CSS, but by the DOM node that needs them [Note: slight oversimplification, but
…
The post Resources aren’t requested...
Shadow Roots and Inheritance
16.9.2021
There is a helluva gotcha with styling a <details> element, as documented here by Kitty Guiraudel. It’s obscure enough that you might never run into it, but if you do, I could see it being very confusing (it would confuse …
The post Shadow Roots and Inheritance appeared first...
New NFT Collections Loot for Adventurers, MAYC, Inertial Moment Make Serious Headway in Sales
5.9.2021
During the last few weeks, non-fungible token (NFT) collections like Cryptopunks, Axie Infinity, Art Blocks, Bored Ape Yacht Club (BAYC), and Meebits have been seeing massive volumes. However, a number of new NFT collections are making headway in sales and the Ethereum-based roleplaying game called...
Nifty News: NBA star snaps up Bored Apes and what is Loot playing at?
2.9.2021
NBA star Stephen Curry snapped up a Bored Ape Yacht Club NFT worth $206,000, while Vine co-founder Dom Hofmann unintentionally created an NFT craze
Introduction to the Solid JavaScript Library
24.8.2021
Solid is a reactive JavaScript library for creating user interfaces without a virtual DOM. It compiles templates down to real DOM nodes once and wraps updates in fine-grained reactions so that when state updates, only the related code runs.
This …
The post Introduction to the Solid...
Native JavaScript Routing?
23.8.2021
We can update the URL in JavaScript. We’ve got these APIs:
// Adds to browser history
history.pushState({}, "About Page", "/about");
// Doesn't
history.replaceState({}, "About Page", "/about");
JavaScript is also capable of replacing any content in the DOM....
It Took 400+ Hours To Make This Super Accurate 3D Printed GTA V Map
8.8.2021
I’ve been playing Grand Theft Auto V since it launched back in 2013. So, I’m pretty familiar with the map. But seeing the whole thing recreated perfectly using 3D printing is wild and makes me appreciate just how much detail and work Rockstar packed into this digital world. Not to mention...
When a Click is Not Just a Click
30.6.2021
The click event is quite simple and easy to use; you listen for the event and run code when the event is fired. It works on just about every HTML element there is, a core feature of the DOM API.…
The post When a Click is Not Just a Click appeared first on CSS-Tricks. You can support...
Svelte for the Experienced React Dev
21.5.2021
This post is an accelerated introduction to Svelte from the point of view of someone with solid experience with React. I’ll provide a quick introduction, and then shift focus to things like state management and DOM interoperability, among other things. …
The post Svelte for the Experienced...
Platform News: Using :focus-visible, BBC’s New Typeface, Declarative Shadow DOMs, A11Y and Placeholders
16.4.2021
There’s a whole lot of accessibility in this week’s news, from the nuances of using :focus-visible and input placeholders, to accessible typefaces and a Safari bug with :display: contents. Plus, a snippet for a bare-bones web component that supports …
The post Platform News:...
Coordinating Svelte Animations With XState
7.4.2021
This post is an introduction to XState as it might be used in a Svelte project. XState is unique in the JavaScript ecosystem. It doesn’t keep your DOM synced with your application state, nor does it help you with asynchrony, …
The post Coordinating Svelte Animations With XState appeared...
Space Jam 2 Sounds Weird
4.3.2021
Space Jam: A New Legacy—or as I will be referring to it for the rest of this blog Space Jam 2—is coming out later this year. Thanks to a new story from Entertainment Weekly we now know what the movie is actually about and folks, it’s some wild shit involving VR, Casablanca, Don Cheadle playing...
Collective #649
18.2.2021
Penpot * SmolCSS * Remotion * Building a Tabs component * Managing focus in the shadow DOM
The post Collective #649 appeared first on Codrops
“I Don’t Know”
21.12.2020
I’ve learned to be more comfortable not knowing. “I don’t know”, comes easier now. “I don’t know anything about that.” It’s okay. It feels good to say.
Whether it’s service workers, Houdini, shadow DOM, web components, HTTP2, CSS grid, “micro-front ends”, AVIF… there are many paths before...
Focus management and inert
19.10.2020
Many forms of assistive technology use keyboard navigation to understand and take action on screen content. One way of navigating is via the Tab key. You may already be familiar with this way of navigating if you use it to quickly jump from input to input on a form without having to reach for your...
radEventListener: a Tale of Client-side Framework Performance
18.8.2020
React is popular, popular enough that it receives its fair share of criticism. Yet, this criticism of React isn’t completely unwarranted: React and ReactDOM total about 120 KiB of minified JavaScript, which definitely contributes to slow startup time. When client-side rendering in React is relied...
Practical Use Cases for JavaScript’s closest() Method
12.8.2020
Have you ever had the problem of finding the parent of a DOM node in JavaScript, but aren’t sure how many levels you have to traverse up to get to it? Let’s look at this HTML for instance:
<div data-id="123"<buttonClick me</button</div
That’s pretty straightforward, right? Say...