Search
`aspect-ratio` is going to deprecate FitVids
8.1.2021
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
8.1.2021
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...
Creating CSS APIs without JavaScript With the datasette-css-properties plugin
8.1.2021
Simon Willison has a project called Datasette, an open source multi-tool for exploring and publishing data. I’m not sure I’m qualified to explain it, but it’s like a tool to make handling data easier and doing more — …
The post Creating CSS APIs without JavaScript With...
Theming and Theme Switching with React and styled-components
7.1.2021
I recently had a project with a requirement to support theming on the website. It was a bit of a strange requirement, as the application is mostly used by a handful of administrators. An even bigger surprise was that they …
The post Theming and Theme Switching with React...
Win a Copy of Zell Liew’s Learn JavaScript Course
7.1.2021
Zell Liew is giving away 10 free copies of his Learn JavaScript course, and entering the giveaway is pretty easy: sign up for his newsletter. I’ve personally subscribed for some time now and all I get is as occasional …
The post Win a Copy of Zell Liew’s Learn JavaScript Course...
Regulated Bitcoin ETPs Skyrocket, Coinshares Cites ‘Unprecedented Interest from Institutional Investors’
6.1.2021
The Sweden-based XBT provider Coinshares saw roughly $202 million in XBT certificates swap hands on the market’s first day of trading in 2021. Meanwhile, on the same day, the bitcoin exchange-traded product BTCE saw $100 million in trade volume. Coinshares Group is a European firm dedicated...
Styling Code In and Out of Blocks
6.1.2021
There is a <code> tag in HTML. I literally just used it to wrap that tag in the previous sentence — so meta. It is an inline-by-default element that denotes any sort of code. It has default (user agent) styles …
The post Styling Code In and Out of Blocks appeared first...
Whack-a-Mole: The CSS Edition
6.1.2021
We’ve seen the checkbox hack and how it can be used to build a complete state machine in CSS. Today, we’ll take that line of thought a step further and build a simple game of Whack-A-Mole, where the player needs …
The post Whack-a-Mole: The CSS Edition appeared first on CSS-Tricks.
You...
Some Recent Videos About Websites That Are Pretty Good
5.1.2021
Here’s a little hodgepodge of videos I’ve recently bookmarked (and watched). I couldn’t decide if each one of them should be a separate blog post or if I should do this combined list post thing. If I had a lot …
The post Some Recent Videos About Websites That Are Pretty...
Custom Properties as State
5.1.2021
Here’s a fun idea from James Stanley: a CSS file (that presumably updates daily) containing CSS custom properties for “seasonal” colors (e.g. spring is greens, fall is oranges). You’d then use the values to theme your site, knowing that those …
The post Custom...
Creating Arrays in Hasura
4.1.2021
Hasura is one of my favorite ways to create a managed GraphQL API for my applications. I find it easy and straightforward as well as suitable for a wide range of use cases. However, since working with Hasura, I’ve seen …
The post Creating Arrays in Hasura appeared first on CSS-Tricks.
You...
The End of Adobe Flash
4.1.2021
I come to bury Flash, not to praise it, writes Matt May in this excellent thread about the end of Adobe Flash. Not so long ago, web designers used Flash to create striking visuals and animations and games. But …
The post The End of Adobe Flash appeared first on CSS-Tricks.
You can support...
Make Your Own Tools
4.1.2021
Spencer Miskoviak on the Wealthfront blog:
By creating custom DevTools specific to an app, they can operate at an even higher abstraction to handle things like user interactions, or debugging tracking events. While this requires building and maintaining the
…
The post Make Your Own Tools...
Houdini.how
1.1.2021
Nice site from Google (and guest contributors) with a bunch of fun demos of what Houdini can do. Plus a write-up from Una. These are all Paint API demos. Houdini is technically a group of seven things that are all …
The post Houdini.how appeared first on CSS-Tricks.
You can support...
Centering in CSS
1.1.2021
Adam Argyle has a post over on web.dev digging into this. He starts with the assumption that you need to do vertical centering and horizontal centering. It’s that vertical centering that has traditionally been a bit trickier for folks, particularly …
The post Centering in CSS appeared...
Thank You (2020 Edition)
31.12.2020
Heck of a year, eh? Like we do ever year, I’d like to give you a huge thanks for reading CSS-Tricks, and recap the year. More downs than ups, all told. Here at CSS-Tricks, it was more of a …
The post Thank You (2020 Edition) appeared first on CSS-Tricks.
You can support CSS-Tricks...
Give your Eleventy Site Superpowers with Environment Variables
31.12.2020
Eleventy is increasing in popularity because it allows us to create nice, simple websites, but also — because it’s so developer-friendly. We can build large-scale, complex projects with it, too. In this tutorial we’re going to demonstrate that expansive capability …
The post Give your...
Vaneck Files New Bitcoin ETF Proposal With SEC Under New Administration
31.12.2020
After successfully launched a bitcoin exchange-traded product in Europe, Vaneck has now filed a new proposal for a bitcoin exchange-traded fund (ETF) with the U.S. Securities and Exchange Commission (SEC). Under former chairman Jay Clayton, the SEC never approved a bitcoin ETF. However, Clayton...
A font-display setting for slow connections
31.12.2020
Me, I really dislike FOUT. I like that it’s an option, because not displaying text quickly on the web is no good. I know font-display: swap; is popular because it’s good for performance, but that FOUT stuff pains me. Matt …
The post A font-display setting for slow connections...
3 Steps to Enable Client Hints on Your Image CDN
31.12.2020
The goal of Client Hints is to provide a framework for a browser when informing the server about the context in which a web experience is provided.
HTTP Client Hints are a proposed set of HTTP Header Fields for proactive
…
The post 3 Steps to Enable Client Hints on Your Image CDN appeared...