Search
Pseudo-elements in the Web Animations API
14.5.2020
To use the Web Animations API (e.g. el.animate()) you need a reference to a DOM element to target. So, how do you use it on pseudo-elements, which don’t really offer a direct reference? Dan Wilson covers a (newish?) part of the API itself:
const logo...
React Single File Components Are Here
13.5.2020
Shawn Wang is talking about RedwoodJS here:
… it is the first time React components are being expressed in a single file format with explicit conventions.
Which is the RedwoodJS idea of Cells. To me, it feels like a slightly cleaner version of how Apollo wants you to do it with useQuery....
Using CSS Masks to Create Jagged Edges
12.5.2020
I was working on a project that had this neat jagged edge along the bottom of a banner image.
Looking sharp… in more ways than one.
It’s something that made me think for a second and I learned something in the process! I thought I’d write up how I approached it so you can use it on your...
Recent Episodes of ShopTalk Show
12.5.2020
There is a super cool new Podcast block for WordPress Gutenberg you use Jetpack (released in 8.5). I wanted to try it out, so below you’ll see recent episodes from ShopTalk Show. I’d tell you all about the recent episodes, except then this blog post wouldn’t age very well, because...
Why does writing matter in remote work?
12.5.2020
Talk to anyone who has an active blog and I bet they’ll tell you it’s been valuable to them. Maybe it’s opened doors. Maybe it’s got them a job. Maybe it’s got them a conference invite. Maybe they just like the thrill of knowing people have read and responded to...
Accepting Payments (including Recurring Payments) on WordPress.com
12.5.2020
I’m a fan of building websites with the least amount of technical debt and things you have to be responsible for as possible for what you wanna do. Sometimes you take on this debt on purpose because you have to, but when you don’t, please don’t ;).
Let’s say you need...
Dealing With Stale Props and States in React’s Functional Components
12.5.2020
There’s one aspect of JavaScript that always has me pulling my hair: closures. I work with React a lot, and the overlap there is that they can sometimes be the cause of stale props and state. We’ll get into exactly what that means, but the trouble is that the data we use to build our UI can...
How I Put the Scroll Percentage in the Browser Title Bar
12.5.2020
Some nice trickery from Knut Melvær.
Ultimately the trick boils down to figuring out how far you’ve scrolled on the page and changing the title to show it, like:
document.title = `${percent}% ${post.title}`
Knut’s trick assumes React and installing an additional library. I’m sure...
CSS Animation Timelines: Building a Rube Goldberg Machine
12.5.2020
If you’re going to build a multi-step CSS animation or transition, you have a particular conundrum. The second step needs a delay that is equal to the duration of the first step. And the third step is equal to the duration of the first two steps, plus any delay in between. It gets more...
min(), max(), and clamp() are CSS magic!
12.5.2020
Nice video from Kevin Powell. Here are some notes, thoughts, and stuff I learned while watching it. Right when they came out, I was mostly obsessed with font-size usage, but they are just functions, so they can be used anywhere you’d use a number, like a length.
Sometimes pretty basic usage...
Genesis Mining’s Marco Streng: 'You Can't Just Switch Miners On and Off'
11.5.2020
The Cointelegraph Bitcoin Halving live party continues with a deep dive into how the mining industry is affected by the sudden, but very predictable revenue shock
Exchange Crypto with 0% Fees in Lumi Wallet
11.5.2020
Everybody’s sick of commissions. Lumi Wallet is renouncing them, introducing 0% Fees on all in-wallet operations. All you need to get rid of hidden fees is the Lumi Wallet app and the promocode – BTCNEWS. Why is Lumi doing this? Decentralized finance has undeniable advantages over fiat...
Chromium lands Flexbox gap
9.5.2020
I mentioned this the other day via Michelle Barker’s coverage, but here I’ll link to the official announcement. The main thing is that we’ll be getting gap with flexbox, which means:
.flex-parent {
display: flex;
gap: 1rem;
}
.flex-child {
flex: 1;
}
That’s excellent...
prerender.js
9.5.2020
This is another player in the game of rendering the page of the link that you’re about to click on before you click it. It’s like getting a decent performance boost for extremely little effort.
Instant.page is another one, and I’ve been sufficiently convinced by its methodology...
I’m getting back to making videos
8.5.2020
It’s probably one part coronavirus, one part new-fancy-video setup, and one part “hey this is good for CodePen too,” but I’ve been doing more videos lately. It’s nice to be back in the swing of that for a minute. There’s something fun about coming back to an...
Working With MDX Custom Elements and Shortcodes
7.5.2020
MDX is a killer feature for things like blogs, slide decks and component documentation. It allows you to write Markdown without worrying about HTML elements, their formatting and placement while sprinkling in the magic of custom React components when necessary.
Let’s harness that magic and look...
First Mover: Bitcoin’s ‘Halving’ Is Coming Even Sooner Than You Realize
7.5.2020
More activity on the bitcoin blockchain means the blockheight, which triggers the halving event, is probably coming faster than anticipated
Meet Ideaology – All in One Blockchain Solution
6.5.2020
DUBAI, UAE, 8th May (Friday) Time: 10 AM New York, NY, USA (GMT-4) ‘MEET IDEAOLOGY’ webconference is looking for you The exclusive, pre-launch presentation for the top crypto people In an effort to make top-shelf blockchain partnerships before their Initial Coin Offering is launched, Ideaology...
The Anatomy of a Tablist Component in Vanilla JavaScript Versus React
5.5.2020
If you follow the undercurrent of the JavaScript community, there seems to be a divide as of late. It goes back over a decade. Really, this sort of strife has always been. Perhaps it is human nature.
Whenever a popular framework gains traction, you inevitably see people comparing it to rivals....
[aktualita] Lesy hezčí než v Kingdom Come. Vychází působivá česká hra Someday You'll Return
5.5.2020
Dvoučlenné brněnské studio CBE software (Jan Kavan a Lukáš Medek) dnes (5. května 2020) po několika letech vývoje vydalo hru Someday You'll Return, která vznikala ve skromných podmínkách, přesto ale v mnoha ohledech nabízí AAA kvality. Zhruba patnáctihodinový titul se řadí do žánru hororových...