You probably want CSS-Tricks

Web Features That May Not Work As You’d Expect

Written by: Farai Gandiya

As the web gets more and more capable, developers are able to make richer online experiences. There are times, however, where some new web capabilities may not work as you would expect in the interest of usability, security and privacy. I have run into situations like this. Like lazy loading in HTML. It’s easy to […]

Continue reading "Web Features That May Not Work As You’d Expect" at CSS-Tricks

My petite-vue review

Written by: Chris Coyier

Dave: petite-vue is a new cut of the Vue project specifically built with progressive enhancement in mind. At 5kb, petite-vue is a lightweight Alpine (or jQuery) alternative that can be “sprinkled” over your project requiring no extra bundling steps or build processes. Add a <script> tag, set a v-scope, and you’re off to the races. This is up my alley. Lots […]

Continue reading "My petite-vue review" at CSS-Tricks

Organize your CSS declarations alphabetically

Written by: Chris Coyier

Eric, again not mincin’ no words with blog post titles. This is me: The most common CSS declaration organization technique I come across is none whatsoever. Almost none, anyway. I tend to group them by whatever dumps out of my brain as I’m writing them, which usually ends up with somewhat logical groups, like box […]

Continue reading "Organize your CSS declarations alphabetically" at CSS-Tricks

Using Google Drive as a CMS

Written by: Nathan Babcock

We’re going to walk through the technical process of hooking into Google Drive’s API to source content on a website. We’ll examine the step-by-step implementation, as well as how to utilize server-side caching to avoid the major pitfalls to avoid such as API usage limits and image hotlinking. A ready-to-use npm package, Git repo, and […]

Continue reading "Using Google Drive as a CMS" at CSS-Tricks

Hashnode: A Blogging Platform for Developers

Written by: Chris Coyier

Hashnode is a free platform for developer blogging. Say you’ve just finished an ambitious project and want to write about 10 important lessons you’ve learned as a developer during it. You should definitely blog it—I love that kind of blog post, myself. Making a jump into the technical debt of operating your own blog isn’t a small choice, but it’s important to own your own content. With Hashnode, the decision gets a lot easier. You can blog under a site you entirely own, and at the same time, reap the benefits of hosted software tailor-made for developer blogging and be part of a social center around developer writing.

Continue reading "Hashnode: A Blogging Platform for Developers" at CSS-Tricks

Yet Another Mobile Context Menu With No Indication it Can Scroll

Written by: Chris Coyier

Remember Tyler Hall’s personal story of a UX moment where the popup sharing context menu on iOS had no visible indication that the content inside was scrollable? The thing his mom wanted to do seemed impossible iOS isn’t alone here — Terence Eden documents essentially the same problem on Android: I tried sharing a website […]

Continue reading "Yet Another Mobile Context Menu With No Indication it Can Scroll" at CSS-Tricks

ECMAScript proposal: JSON modules

Written by: Chris Coyier

Dr. Axel Rauschmayer looks at JSON modules, which is already live in Chrome 91 (but nothing else). It looks just like an ES Modules-style import, only you asset the type at the end. How nice is that? Once this makes its way across browsers, we’ve gone on a journey from “you’ll almost definitely want to […]

Continue reading "ECMAScript proposal: JSON modules" at CSS-Tricks

A Step-By-Step Process for Turning Designs Into Code

Written by: Mark Noonan

Turning website design files into a combination of HTML, CSS and JavaScript is the bread and butter of many front-end web development jobs, but there’s a part of this work that doesn’t neatly fit in to tutorials on any specific topic. There’s a process of breaking down a design and figuring out how to approach […]

Continue reading "A Step-By-Step Process for Turning Designs Into Code" at CSS-Tricks

The Nine States of Design

Written by: Robin Rendle

Here’s a really good ol’ post from way back in 2015 all about the nine states of design and how we should think all the edge cases whenever we’re building interfaces. Vince Speelman writes:

Continue reading "The Nine States of Design" at CSS-Tricks

Your Image Is Probably Not Decorative

Written by: Chris Coyier

Eric doesn’t mince words, especially in the title, but also in the conclusion: In modern web design and development, displaying an image is a highly intentional act. Alternate descriptions allow us to explain the content of the image, and in doing so, communicate why it is worth including. Just because an image displays something fanciful doesn’t […]

Continue reading "Your Image Is Probably Not Decorative" at CSS-Tricks

Typewriter Animation That Handles Anything You Throw at It

Written by: Murtuzaali Surti

I watched Kevin Powell’s video where he was able to recreate a nice typewriter-like animation using CSS. It’s neat and you should definitely check it out because there are bonafide CSS tricks in there. I’m sure you’ve seen other CSS attempts at this, including this site’s very own snippet. Like Kevin, I decided to recreate […]

Continue reading "Typewriter Animation That Handles Anything You Throw at It" at CSS-Tricks

Images are hard.

Written by: Chris Coyier

Putting images on websites is incredibly simple, yes? Actually, yes, it is. You use <img> and link it to a valid source in the src attribute and you’re done. Except that there are (counts fingers) 927 things you could (and some you really should) do that often go overlooked. Let’s see… Make sure you use […]

Continue reading "Images are hard." at CSS-Tricks