Author
Chris Coyier
Comments
Start Conversation
As front-end developers, our job is working with browsers. Knowing how many we have and the health of them is always of great interest. As far as numbers go, we have fewer recently than we have in the past. It’s only this month that Edge is starting to auto-update browsers to the Chromium version, yet another notable milestone in the shrinking number of browsers.… Read article “Web Engine Diversity and Ecosystem Health”
Sponsored by
Frontend Masters
With a very recent Safari update, Web Animations API (WAAPI) is now supported without a flag in all modern browsers (except IE). Hereās a handy Pen where you can check which features your browser supports. The WAAPI is a nice way to do animation (that needs to be done in JavaScript) because itās native ā meaning it requires no additional libraries to work. If youāre completely new to WAAPI, hereās a very good introduction by Dan Wilson.
One of … Read article “Everything You Need to Know About FLIP Animations in React”
Developer Experience¹ is a term² with a self-declaring meaning ā the experience of developers ā but it eludes definition in the sense that people invoke it at different times for different reasons referring to different things. For instance, our own Sarah Drasner’s current job title is “VP of Developer Experience” at Netlify, so it’s a very real thing. But a job title is just one way the term is used. Let’s dig in a bit and apply it … Read article “What is Developer Experience (DX)?”
Flywheel is my WordPress hosting partner here. I use Local every day for my WordPress local development environment and use their hosting for all my WordPress sites as part of my whole flow, so I’m glad they aren’t just a sponsor but a product I use and like.
Last November some of their crew came out and shot some photos and video with me, which was cool and fun and made me feel famous lolll.
They ultimately built a … Read article “My Flywheel Landing Page”
I am creating a WordPress plugin and there is a slight learning curve when it comes to using it. Iād like to give users a primer on how to use the plugin, but I want to avoid diverting users to documentation on the plugin’s website since that takes them out of the experience.
What would be great is for users to immediately start using the plugin once itās installed but have access to helpful tips while they are actively using … Read article “Adding a Custom Welcome Guide to the WordPress Block Editor”
Hereās the plan! Weāre going to build a styled select element. Not just the outside, but the inside too. Total styling control. Plus weāre going to make it accessible. Weāre not going to try to replicate everything that the browser does by default with a native <select> element. Weāre going to literally use a <select> element when any assistive tech is used. But when a mouse is being used, weāll show the styled version and make it function as … Read article “Striking a Balance Between Native and Custom Select Elements”
There are some neat interactive demos in here from Thiru Manikandan. There are a couple of very tricky things with z-index that never fail to confuse. In addition to things like requiring positioning and source order, the trickiest are the stacking contexts and parent/child relationships. z-index isn’t a flat playing field. Even if you put z-index: 2147483644¹ on an element, it’s possible nothing will happen because that element might be inside a parent element with its own stacking context … Read article “Learn Z-Index Using a Visualization Tool”
A CSS methodology from Andy Bell:
The most important part of this methodology is the language itself: CSS. Itās key to note its existence in the name because some alternative approaches, such asĀ BEMāwhich I have enjoyed for many yearsācan veer very far away from Cascading Style Sheets. IĀ loveĀ CSS, though and think that its core capabilities are actuallyĀ keyĀ to scalable CSS.
A favorite bit…
… Read article “CUBE CSS”[…] a design system doesnāt just make you think at aĀ micro-level
Here’s a two-second review. If an element has an ID, you can link to it with natural browser behavior. It’s great if headings have them, because it’s often useful to link directly to a specific section of content.
<h3 id="step-2"Step 2</a
Should I be so inclined, I could link right to this heading, be it from an URL, like https://my-website.com/#step-2, or an on-page link, like:
<a href="#step-2"Jump to Step 2</a
So, it’s ideal if all headers have … Read article “On Adding IDs to Headings”
I needed a numbered list of blog posts to be listed with the last/high first and going down from there. Like this:
5. Post Title
4. Post Title
3. Post Title
2. Post Title
1. Post Title
But the above is just text. I wanted to do this with a semantic <ol> element.… Read article “How to Reverse CSS Custom Counters”
You can create stripes in CSS. Thatās all I thought about in terms of CSS background patterns for a long time. Thereās nothing wrong with stripes; stripes are cool. They can be customized into wide and narrow bands, criss-crossed into a checked pattern, and played with in other ways using the idea of hard stops. But stripes can be boring, too. Too conventional, out of fashion, and sometimes even unpleasant.
Thankfully, we can conjure up far more background … Read article “Creative Background Patterns Using Gradients, CSS Shapes, and Even Emojis”
Take your JavaScript to the next level and find out what itās fully capable of with the JavaScript path on Frontend Masters.