Search
Platform News: Defaulting to Logical CSS, Fugu APIs, Custom Media Queries, and WordPress vs. Italics
12.3.2021
Looks like 2021 is the time to start using CSS Logical Properties! Plus, Chrome recently shipped a few APIs that have raised eyebrows, SVG allows us to disable its aspect ratio, WordPress focuses on the accessibility of its typography, and …
The post Platform News: Defaulting to Logical...
Bitfinex users can now paper trade their custom algo strategies
11.3.2021
Honey Framework users have more than tripled, according to Bitfinex. Paper trading allows them to test their strategies without risking real capital
Web Components Are Easier Than You Think
8.3.2021
When I’d go to a conference (when we were able to do such things) and see someone do a presentation on web components, I always thought it was pretty nifty (yes, apparently, I’m from 1950), but it always seemed complicated …
The post Web Components Are Easier Than You Think appeared first...
Exploring @property and its Animating Powers
4.3.2021
Uh, what’s @property? It’s a new CSS feature! It gives you superpowers. No joke, there is stuff that @property can do that unlocks things in CSS we’ve never been able to do before.
While everything about @property is exciting, …
The post Exploring @property and its Animating Powers appeared...
PS2 Emulation Gets Even Nicer With Custom Textures
3.3.2021
PCSX2 has long been a fantastic PS2 emulator, but a recent advance has made it all the more appealing for anyone playing on a PC: the ability to swap textures in games.Read more
How to Map Mouse Position in CSS
1.3.2021
Let’s look at how to get the user’s mouse position and map it into CSS custom properties: --positionX and --positionY.
We could do this in JavaScript. If we did, we could do things like make make an element …
The post How to Map Mouse Position in CSS appeared first on CSS-Tricks.
You...
The Things I Add to Tailwind CSS Right Out of the Box
26.2.2021
In every project where I use Tailwind CSS, I end up adding something to it. Some of these things I add in every single project. I’ll share these with you, but I’m also curious what y’all are adding to …
The post The Things I Add to Tailwind CSS Right Out of the Box appeared first...
Ensuring the correct vertical position of large text
26.2.2021
Tobi Reif notes how the position of custom fonts set at very large font sizes can be super different, even in the same browser across operating systems. The solution? Well, you know how there are certain CSS properties that only …
The post Ensuring the correct vertical position of large text...
A DRY Approach to Color Themes in CSS
24.2.2021
The other day, Florens Verschelde asked about defining dark mode styles for both a class and a media query, without repeat CSS custom properties declarations. I had run into this issue in the past but hadn’t come up with a …
The post A DRY Approach to Color Themes in CSS appeared first...
Use CSS Variables instead of React Context
19.2.2021
Turns out you can use several different libraries to pass color information around components. Or, you could use custom properties, built right into CSS, have no decline in your own developer experience, and deliver a faster experience to your users. …
The post Use CSS Variables instead...
Let’s Create a Custom Audio Player
18.2.2021
HTML has a built-in native audio player interface that we get simply using the <audio> element. Point it to a sound file and that’s all there is to it. We even get to specify multiple files for better browser support, …
The post Let’s Create a Custom Audio Player appeared first...
CSS Switch-Case Conditions
17.2.2021
CSS is yet to have a switch rule or conditional if, aside from the specific nature of @media queries and some deep trickery with CSS custom properties. Let’s have a look at why it would be useful if we …
The post CSS Switch-Case Conditions appeared first on CSS-Tricks.
You can support...
Microsoft and Enjin Bring Cross-Platform Custom NFTs to Minecraft
11.2.2021
To celebrate the International Day of Women and Girls in Science, players earn badges while learning from prominent female scientists
Please Enjoy These Custom Yoshi Sneakers
4.2.2021
For this pair of custom sneakers, which he stitched up using his own leather, Kenneth Cole decided on two things. First, he was going to make a pair of Dunks, and second, he was going to make them Yoshi Dunks.Read more
Modder Forms Amazing Custom PC Out Of '80s Voltron Toy Castle
22.1.2021
When ‘80s kid Robdp82 found a relatively rare 1984 Voltron “Castle of Lions” playset in his mother’s attic, he did what any nostalgia-loving computer builder would do—he transformed it into a lovely Voltron-themed custom PC, complete with five color-coded lion SSDs.Read more
useStateInCustomProperties
21.1.2021
In my recent “Custom Properties as State” post, one of the things I mentioned was that theoretically, UI libraries, like React and Vue, could automatically map the state they manage over to CSS Custom Properties so we could use that state …
The post...
How to Play and Pause CSS Animations with CSS Custom Properties
21.1.2021
Let’s have a look CSS @keyframes animations, and specifically about how you can pause and otherwise control them. There is a CSS property specifically for it, that can be controlled with JavaScript, but there is plenty of nuance to get …
The post How to Play and Pause CSS Animations with...
3 Approaches to Integrate React with Custom Elements
15.1.2021
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...
Custom Black PS5s Go On Sale, Then Don't, After Website Claims "Credible Threats To [Their] Safety"
11.1.2021
Last week, a website popped up promising to sell brand new PS5 consoles that would be purchased, painted black, then resold for a $100 premium. That’s no longer going to happen.Read more
The PS5's DualSense Is The Perfect Canvas
7.1.2021
One of my first thoughts upon seeing the futuristic armored look of the PlayStation 5’s Dualsense controller was, “Man, I bet that’s going to look awesome with a custom paint job.” Indulging my pink and black obsession, the painting pros at Colorware have confirmed my hypothesis.Read more