Search
Wanna see a whiter white?
11.8.2021
Heck of a CSS trick here from Dongsung Kim.
There are hidden HDR videos playing at the corners of this page. When a HDR-capable browser encounters one, it switches to HDR mode. For some reason, CSS backdrop-filter + brightness >100%
…
The post Wanna see a whiter white? appeared first...
Safari 15 Opinions
28.7.2021
It was interesting that when Safari 15 was dropping at this last WWDC, in my circles at least, I mostly heard enthusiasm. Like the colors-in-the-browser-controls stuff was a neat trick and fun to play with. And there were other …
The post Safari 15 Opinions appeared first on CSS-Tricks....
New Pokémon Snap’s ‘Obama Skip’ Is The Latest Speedrunning Trick With A Weird Name
10.7.2021
Like any sub-culture, speedrunning is known for creating its own unique vocabulary that, at times, can sound like an entirely different language. Fortunately, we have folks like Abyssoft to act as our Sherpas and guide us up the treacherous speedrunning mountain. His latest video explains...
Body Toggle
6.7.2021
I appreciate the clarity of this trick that Mikael Ainalem posted over on Reddit:
It’s a one-liner that toggles the class on the <body> so you can mock up different states and toggle between them on click.
<body onclick="this.classList.toggle("active");"
Could …
The post...
The Trick to Enable Printify Shipping Notifications for Orders in WooCommerce? Customer Notes.
2.7.2021
This is a super niche blog post. But it’s been on my list forever to write down because this caused me grief for far too long.
The setup is that you can use WooCommerce to sell things on a WordPress …
The post The Trick to Enable Printify Shipping Notifications for Orders...
Hexagons and Beyond: Flexible, Responsive Grid Patterns, Sans Media Queries
3.6.2021
A little while back, Chris shared this nice hexagonal grid. And true to its name, it’s using —wait for it — CSS Grid to form that layout. It’s a neat trick! Combining grid columns, grid gaps, and creative clipping …
The post Hexagons and Beyond: Flexible, Responsive Grid Patterns, Sans Media...
proxy-www
24.5.2021
I like a good trick. What if… a URL was… a promise… that fetched said URL?
www.codepen.io.then((response) ={
console.log(response);
});
That’s what @justjavac did with JavaScript Proxys. A clever trick, that. Don’t @ me about the practicality. Trick…
The post...
JSON in CSS
21.5.2021
Jonathan Neal tweeted a heck of a little CSS trick the other day, putting JSON inside CSS and plucking it out with JavaScript. Valid values for custom properties are quite liberal! So this looks for a CSS rule (e.g. a …
The post JSON in CSS appeared first on CSS-Tricks.
You can support...
I Have Nothing But Shame: I'm Trying To Trick Pokémon Go
19.5.2021
I have reached my lowest ebb. As I write these words, out the corner of my left eye I can see the eternal rocking motion of my cell phone as it sways within its cradle. I have become all things terrible. I have fallen. I’m trying to trick Pokémon Go into thinking I’m far less lazy than I am.Read...
Skate 3’s Sickest Trick Is A Rube Goldberg Machine
10.5.2021
“Do a kickflip!” Yeah, yeah, yeah. How about this: “Create an elaborate Rube Golberg machine and then use it to do the sickest trick maybe ever!” Reddit user Skate3Tommy would probably be, like, “Okay.”Read more
Skate City Filled The Skate-Sized Hole In My Heart
7.5.2021
Help, I can’t stop playing Skate City, a lo-fi skateboarding game that landed on consoles and PC yesterday following a period of exclusivity on Apple Arcade.Read more
Creating Colorful, Smart Shadows
4.5.2021
A bona fide CSS trick from Kirupa Chinnathambi here. To match a colored shadow with the colors in the background-image of an element, you inherit the background in a pseudo-element, kick it behind the original, then blur and filter it. …
The post Creating Colorful, Smart Shadows appeared...
:where() has a cool specificity trick, too.
30.3.2021
There is a lot of hype on the :is() pseudo-selector lately, probably because now that Safari 14 has it, it’s supported across all the major browsers. You’ve got Miriam tweeting about it, Kevin Powell doing a video, Šime …
The post :where() has a cool specificity trick, too....
Tricking WCV
30.3.2021
Google has said that Web Core Vitals (WCV) are going to be an SEO factor, and the date is nigh: May 2021. So, I’m seeing some scrambling to make sure those metrics are good. Ya know, the acronym …
The post Tricking WCV appeared first on CSS-Tricks.
You can support CSS-Tricks by being...
Legendary Skateboarder Tony Hawk to Auction NFT of Trick Footage
23.3.2021
Tony Hawk joins a growing list of celebrities digitizing and selling their collectibles as non-fungible tokens. The skateboarding icon plans to auction a film of the last time he performed the Ollie 540 – the trick he first mastered 32 years ago. Ethernity Chain to Mint and Auction...
In Praise of the Unambiguous Click Menu
18.3.2021
I still remember my excitement when I learned how to build a hover-triggered submenu with just CSS. (It was probably after reading this 2003 article from A List Apart.) At the time, it was a true CSS trick. Seriously. …
The post In Praise of the Unambiguous Click Menu appeared first...
Valve Bans 'Very Positive' Developer For Trying To Trick Steam Users
17.2.2021
Emoji Evolution is a puzzle game on Steam about combining weird symbols. Or at least it was: Valve recently removed it from the storefront and banned its creator’s developer account after apparently discovering how they were exploiting Steam’s layout to try to trick people into playing...
Animating a CSS Gradient Border
8.2.2021
This little trick for gradient borders is super useful:
.border-gradient {
border: 5px solid;
border-image-slice: 1;
border-image-source: linear-gradient(to left, #743ad5, #d53a9d);
}
Here’s some basic demos from our article on the subject. Sephanie Eckles was sharing around the idea...
Going From Solid to Knockout Text on Scroll
3.2.2021
Here’s a fun CSS trick to show your friends: a large title that switches from a solid color to knockout text as the background image behind it scrolls into place. And we can do it using plain ol’ HTML and …
The post Going From Solid to Knockout Text on Scroll appeared first...
Dynamically Switching From One HTML Element to Another in Vue
2.2.2021
A friend once contacted me asking if I had a way to dynamically change one HTML element into another within Vue’s template block. For instance, shifting a <div> element to a <span> element based on some criteria. The trick was …
The post Dynamically Switching From One HTML...