Search

Nalezeno "trick": 166

Wanna see a whiter white?


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


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....

Body Toggle


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...

Hexagons and Beyond: Flexible, Responsive Grid Patterns, Sans Media Queries


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


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


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


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


“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

Creating Colorful, Smart Shadows


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.


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


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


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


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


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


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


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


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...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace