Your Web News in One Place

Articles by CSS Tricks from July 2021

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
< Return to CSS Tricks details.
08:07 pm GMT - Fri, July 30, 2021
CSS Tricks A Shared ESLint Configuration
Looks like it was almost 9 years ago when Airbnb first published their JavaScript Style Guide. 112k stars on GitHub later, it seems like the de facto preset for Babel / ES Lint. But it’s not the...
02:54 pm GMT - Fri, July 30, 2021
CSS Tricks Conjuring Generative Blobs With The CSS Paint API
The CSS Paint API (part of the magical Houdini family) opens the door to an exciting new world of design in CSS. Using the Paint API, we can create custom shapes, intricate patterns, and beautiful ani...
07:49 pm GMT - Thu, July 29, 2021
CSS Tricks GitHub Explains the Open Graph Images
An explanation of those new GitHub social media images:[…] our custom Open Graph image service is a little Node.js app that uses the GitHub GraphQL API to collect data, generates some HTML from ...
02:54 pm GMT - Thu, July 29, 2021
CSS Tricks So you want to self-publish books and courses on programming
John Resig and I recently self-published our book on GraphQL. There are tons of how-tos for self-publishing a book, or even online classes, but very little in the way of why you would want to, or whet...
02:47 pm GMT - Thu, July 29, 2021
CSS Tricks Developer-Friendly Passwordless Auth
I’d wager to say that most websites that are business-minded have accounts. A way to log into them. Social media sites, eCommerce sites, CMS systems, you name it, having accounts people log into...
08:21 pm GMT - Wed, July 28, 2021
CSS Tricks 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...
02:37 pm GMT - Wed, July 28, 2021
CSS Tricks Using Absolute Value, Sign, Rounding and Modulo in CSS Today
For quite a while now, the CSS spec has included a lot of really useful mathematical functions, such as trigonometric functions (sin(), cos(), tan(), asin(), acos(), atan(), atan2()), exponential func...
11:18 pm GMT - Tue, July 27, 2021
CSS Tricks Learnings From a WebPageTest Session on CSS-Tricks
I got together with Tim Kadlec from over at WebPageTest the other day to use do a bit of performance testing on CSS-Tricks. Essentially use the tool, poke around, and identify performance pain points ...
11:18 pm GMT - Tue, July 27, 2021
CSS Tricks ES2021 Features
Hemanth HM very succinctly shows off ES2021 features. Gosh it doesn’t feel like that long ago that all we could talk about is ES2015, and now that’s over a half-decade behind us. New thing...
03:02 pm GMT - Tue, July 27, 2021
CSS Tricks CSS Logical Properties and Values
Now that cross-browser support is at a tipping point, it’s a good time to take a look at logical properties and values. If you’re creating a website in multiple languages, logical properti...
12:17 am GMT - Tue, July 27, 2021
CSS Tricks Demystifying styled-components
 Joshua Comeau digs into how styled-components works by re-building the basics. A fun and useful journey. styled-components seems like the biggest player in the CSS-in-React market. Despite being...
02:36 pm GMT - Mon, July 26, 2021
CSS Tricks How I Built a Cross-Platform Desktop Application with Svelte, Redis, and Rust
At Cloudflare, we have a great product called Workers KV which is a key-value storage layer that replicates globally. It can handle millions of keys, each of which is accessible from within a Worker s...
02:36 pm GMT - Mon, July 26, 2021
CSS Tricks Slinkity
Perhaps the #1 reason I love Astro is that it brings the JavaScript component authoring experience to the Static Site Generator world with zero JavaScript (except bits you very specifically opt-in to)...
03:12 pm GMT - Fri, July 23, 2021
CSS Tricks Web Features That May Not Work As Youd Expect
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...
03:10 pm GMT - Fri, July 23, 2021
CSS Tricks My petite-vue review
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 s...
10:33 pm GMT - Thu, July 22, 2021
CSS Tricks Organize your CSS declarations alphabetically
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 th...
02:44 pm GMT - Thu, July 22, 2021
CSS Tricks Using Google Drive as a CMS
Were going to walk through the technical process of hooking into Google Drives API to source content on a website. Well examine the step-by-step implementation, as well as how to utilize server-side c...
02:39 pm GMT - Thu, July 22, 2021
CSS Tricks Hashnode: A Blogging Platform for Developers
Hashnode is a free platform for developer blogging. Say youve just finished an ambitious project and want to write about 10 important lessons youve learned as a developer during it. You should definit...
09:08 pm GMT - Wed, July 21, 2021
CSS Tricks Yet Another Mobile Context Menu With No Indication it Can Scroll
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 s...
09:08 pm GMT - Wed, July 21, 2021
CSS Tricks ECMAScript proposal: JSON modules
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. import configData ...
02:37 pm GMT - Wed, July 21, 2021
CSS Tricks A Step-By-Step Process for Turning Designs Into Code
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 theres a part of this work that doesnt neatly fit in to ...
11:34 pm GMT - Tue, July 20, 2021
CSS Tricks The Nine States of Design
Heres 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 were building interfaces. Vince Speelman writes:Modern UI team...
08:02 pm GMT - Tue, July 20, 2021
CSS Tricks Your Image Is Probably Not Decorative
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 ...
03:03 pm GMT - Tue, July 20, 2021
CSS Tricks Typewriter Animation That Handles Anything You Throw at It
I watched Kevin Powells video where he was able to recreate a nice typewriter-like animation using CSS. Its neat and you should definitely check it out because there are bonafide CSS tricks in there. ...
08:51 pm GMT - Mon, July 19, 2021
CSS Tricks Images are hard.
Putting images on websites is incredibly simple, yes? Actually, yes, it is. You use <img> and link it to a valid source in the href attribute and you’re done. Except that there are (coun...
02:43 pm GMT - Mon, July 19, 2021
CSS Tricks Practical Use Cases for Scroll-Linked Animations in CSS with Scroll Timelines
The Scroll-Linked Animations specification is an upcoming and experimental addition to CSS. Using the @scroll-timeline at-rule and animation-timeline property this specification provides you can contr...
08:27 pm GMT - Fri, July 16, 2021
CSS Tricks WordPress Admin Warnings in the Block Editor
We sent out an email the other week that ultimately had a <video> in the HTML markup. We send the newsletter by creating it here in the WordPress block editor, which is fetched through RSS-to-...
02:43 pm GMT - Fri, July 16, 2021
CSS Tricks Of Course We Can Make a CSS-Only Clock That Tells the Current Time!
Lets build a fully functioning and settable analog clock with CSS custom properties and the calc() function. Then well convert it into a digital clock as well. All this with no JavaScript!Heres a quic...
02:42 pm GMT - Fri, July 16, 2021
CSS Tricks Some Typography Links
Glitter text whO (I learned a name for people who go by a one-word moniker like that: Mononymous) created a builder for fancy SVG-based type. It’s a custom font with <text>, and the fan...
02:40 pm GMT - Thu, July 15, 2021
CSS Tricks How to Get a Pixel-Perfect, Linearly Scaled UI
Dynamically scaling CSS values based on the viewport width is hardly a new topic. You can find plenty of in-depth coverage right here on CSS-Tricks in articles like this one or this one.Most of those ...
02:31 pm GMT - Wed, July 14, 2021
CSS Tricks Build Complex CSS Transitions using Custom Properties and cubic-bezier()
I recently illustrated how we can achieve complex CSS animations using cubic-bezier() and how to do the same when it comes to CSS transitions. I was able to create complex hover effect without resorti...
02:25 pm GMT - Wed, July 14, 2021
CSS Tricks A Bashful Button Worth $8 Million
Most of us grumble when running across a frustrating UX experience online (like not being able to complete a transaction because of a misplaced button). We might pen a whiny tweet. Jason Grigsby is li...
07:57 pm GMT - Tue, July 13, 2021
CSS Tricks Links on React and JavaScript
As a day-job, React-using person, I like to stay abreast of interesting React news. As such, I save a healthy amount of links. Allow me to dump out my latest pile. Most of this is about React but not ...
02:58 pm GMT - Tue, July 13, 2021
CSS Tricks Meta Theme Color and Trickery
Starting with Version 15, Safari supports the theme-color <meta> tag both on macOS and iOS. Thats exciting news because now the first desktop browser supports this <meta> tag and it al...
02:34 pm GMT - Tue, July 13, 2021
CSS Tricks Jamstack Community Survey 2021
The folks over at Netlify have opened up the Jamstack Community Survey for 2021. More than 3,000 front-enders like yourself took last year’s survey, which gauged how familiar people are with the...
07:45 pm GMT - Mon, July 12, 2021
CSS Tricks Meet `:has`, A Native CSS Parent Selector
The reasons that are often cited that make container queries difficult or impossible is things like infinite loopse.g. changing the width of an element, invalidating a container query, which changes t...
02:30 pm GMT - Mon, July 12, 2021
CSS Tricks Using the Specificity of :where() as a CSS Reset
I dont know about you, but I write these three declarations many times in my CSS:ul { padding: 0; margin: 0; list-style-type: none;}You might yell at me and say I can just put those in my CSS ̷...
06:53 pm GMT - Fri, July 9, 2021
CSS Tricks :focus-visible in WebKit
This is a nice update from Manuel Rego Casasnovas. Igalia has this idea to sort of crowd-source important web platform features that need to get worked on (that’s the sort of work they do). They...
02:31 pm GMT - Fri, July 9, 2021
CSS Tricks SVG Favicons in Action
Ever heard of favicons made with SVG? If you are a regular reader of CSS-Tricks, you probably have. But does your website actually use one?The task is more non-trivial than you might think. As we will...
10:25 pm GMT - Thu, July 8, 2021
CSS Tricks Beginner JavaScript Notes
Wes has a heck of a set of “notes” for learning JavaScript. It’s organized like a curriculum, meaning if you teach JavaScript, you could do a lot worse. It’s actually more like...
02:35 pm GMT - Thu, July 8, 2021
CSS Tricks My Struggle to Use and Animate a Conic Gradient in SVG
The wonderful company I work for, Payoneer, has a new logo, and my job was to recreate it and animate it for a loader component in our app. Ill explain exactly how I did it, share the problems I ̷...
02:35 pm GMT - Thu, July 8, 2021
CSS Tricks Building a Command Line Tool with Nodejs and Fauna
Command line tools are one of the most popular applications we have today. We use command line tools every day, and they range from git, npm or yarn. Command line tools are very fast and useful for au...
09:06 pm GMT - Wed, July 7, 2021
CSS Tricks A Look at Building with Astro
Astro is a brand new framework for building websites. To me, the big thing is that it allows you to build a site like you’re using a JavaScript framework (and you are), but the output is a zero-...
02:30 pm GMT - Wed, July 7, 2021
CSS Tricks The Webs Worst Default
There are a lot of great defaults when it comes to browsers and the web. Think about all the accessibility features that are baked into HTML so that you dont have to do weird stuff, like this example ...
08:55 pm GMT - Tue, July 6, 2021
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 betw...
08:00 pm GMT - Tue, July 6, 2021
CSS Tricks Ive got one question about Jetpack for you.
And maybe an optional follow-up if you’re up for it.Automattic, the makers of Jetpack and many other WordPress-y things, have sponsored my site (me = Chris Coyier; site = CSS-Tricks) for quite a...
02:41 pm GMT - Tue, July 6, 2021
CSS Tricks The Dilemma of Naming Font Size Variables
Normally, a project will have a set of pre-determined font sizes, usually as variables named in such a way that seeks some semblance of order and consistency. Any project of considerable size can use ...
02:17 pm GMT - Mon, July 5, 2021
CSS Tricks Kubernetes Explained Simply: Containers, Pods and Images
If you zone out every time someone mentions Kubernetes, containers, or pods, this article is for you. No complex diagrams involved!As a front-end developer, you dont have to know how to configure an i...
02:15 pm GMT - Mon, July 5, 2021
CSS Tricks Trigonometry in CSS and JavaScript: Beyond Triangles
Web design is such a rectangle-based design medium that literally any deviation from it feels fresh. Michelle Barker gets into using math in various ways to programmatically draw lines, shapes, and an...
01:29 pm GMT - Sun, July 4, 2021
CSS Tricks The Fourteenth Fourth
It’s CSS-Tricks birthday! Somehow that keeps coming around every year. It’s that time where I reflect upon that past year. It’s like the annual vibe check. I’m writing this jus...
08:39 pm GMT - Fri, July 2, 2021
CSS Tricks Zero-Width Space
The name zero-width space is antithetical, but it’s not without uses. In text, maybe you’d use it around slashes because you want to be sure the words are treated individually but not have...
02:41 pm GMT - Fri, July 2, 2021
CSS Tricks Good Meetings
Like it or not, meetings are essential to a good working environment and communication. Therefore, its crucial that we work on making them as productive as possible. Today well explore myriad ways to ...
12:02 am GMT - Fri, July 2, 2021
CSS Tricks The Trick to Enable Printify Shipping Notifications for Orders in WooCommerce? Customer Notes.
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 WordPr...
06:54 pm GMT - Thu, July 1, 2021
CSS Tricks CSS for Web Vitals
The marketing for Core Web Vitals (CWV) has been a massive success. I guess that’s what happens when the world’s dominant search engine tells people that something’s going to be an S...
06:54 pm GMT - Thu, July 1, 2021
CSS Tricks App Platform on Digital Ocean
This is new stuff from DO.App Platform is a hosting product, no surprise there, but it has some features that are Jamstack-inspired in the best possible way, and an additional set of unique and powerf...
02:40 pm GMT - Thu, July 1, 2021
CSS Tricks Hack the Deploy to Netlify Button Using Environment Variables to Make a Customizable Site Generator
If you’re anything like me, you like being lazy shortcuts. The “Deploy to Netlify” button allows me to take this lovely feature of my personality and be productive with it....
08:36 pm GMT - Wed, June 30, 2021
CSS Tricks How do you make a layout with pictures down one side of a page matched up with paragraphs on the other side?
I got this exact question in an email the other day, and I thought it would make a nice blog post because of how wonderfully satisfying this is to do in CSS these days. Plus we can sprinkle in polish ...
02:45 pm GMT - Wed, June 30, 2021
CSS Tricks When a Click is Not Just a Click
The click event is quite simple and easy to use; you listen for the event and run code when the event is fired. It works on just about every HTML element there is, a core feature of the DOM API.…...
02:44 pm GMT - Wed, June 30, 2021
CSS Tricks Fixing a Bug in Low-Resolution Mode
I was working on a bug ticket the other day where it was reported that an icon was sitting low in a button. Just not aligned like it should be. I had to go on a little journey to figure …The pos...