Huge thanks to BigCommerce for sponsoring CSS-Tricks this week!
We’re quite used to the idea that scaling an image larger than its natural size (upscaling) causes it to be blurry. As awful as that is, it’s the browser doing the best it can to algorithmically smooth out an image over more pixels than it has data. But let’s say you’d really rather not it do … Read article “Keep Pixelated Images Pixelated as They Scale”
Work is like a hill with two sides. There’s an uphill phase of figuring out what to do and how to approach the problem. That’s the climb. After you reach the top, there aren’t anybody [sic] ruinous unknowns. You can see down to
As you begin to learn React, you will be faced with understanding what state is. State is hugely important in React, and perhaps a big reason you’ve looked into using React in the first place. Let’s take a stab at understanding what state is and how it works.… Read article “React State From the Ground Up”
Frank Chimero published a new talk-turned-essay, Everything Easy is Hard Again.
What the heck, right? Why don’t I just tell it what font I want to use and that’s that? The whole idea here is fallbacks.… Read article “CSS Basics: Fallback Font Stacks for More Robust Web Typography”
Safari 11.1 shipped a strange-but-very-useful feature: the ability to use a video source in the tag. The idea is it does the same job as a GIF (silent, autoplaying, repeating), but with big performance gains. How big? “20x faster and decode 7x faster than the GIF equivalent,” says Colin Bendell.… Read article “Fallbacks for Videos-as-Images”
And the nifty … Read article “How to use variable fonts in the real world”
When I saw the original article on how to recreate this animation, my first thought was that it could all be simplified with the use of preprocessors and especialy CSS variables. So let’s dive into it and see how!… Read article “Simplifying the Apple Watch Breathe App Animation With CSS Variables”