Simple Interactive Pie Chart with CSS Variables and Houdini Magic
I got the idea for doing something of the kind when I stumbled across this interactive SVG pie chart. While the SVG code is as compact as it gets (a single <circle> element!), using strokes for creating pie chart slices is problematic as we run into rendering issues on Windows for Firefox and Edge. Plus, in 2018, we can accomplish a lot more with a lot less JavaScript!
AI got the following result down to a single HTML element …
The post Simple Interactive Pie Chart with CSS Variables and Houdini Magic appeared first on CSS-Tricks.
Serif vs. Sans Serif Fonts: Is One Really Better Than the Other?
Gutenberg 3.5.0 Released
How to Make Columns in WordPress without a Plugin
The post How to Make Columns in WordPress without a Plugin appeared first on Torque.
The Cost of JavaScript in 2018
Even though we mentioned it earlier, I thought this outstanding post by Addy Osmani all about the performance concerns of JavaScript was still worth digging into a little more.
In that post, Addy touches on all aspects of perf work and how we can fix some of the most egregious issues, from setting up a budget to “Time-to-Interactive” measurements and auditing your JavaScript bundles.
Embrace performance budgets and learn to live within them. For mobile, aim for a JS budget …
The post The Cost of JavaScript in 2018 appeared first on CSS-Tricks.
Interviews from WordCamp for Publishers 2018
The post Interviews from WordCamp for Publishers 2018 appeared first on Torque.
Switch font color for different backgrounds with CSS
Ever get one of those, “I can do that with CSS!” moments while watching someone flex their JavaScript muscles? That’s exactly the feeling I got while watching Dag-Inge Aas & Ida Aalen talk at CSSconf EU 2018.
They are based in Norway, where WCAG accessibility is not a just good practice, but actually required by law (go, Norway!). As they were developing a feature that allows user-selectable color theming for their main product, they faced a challenge: automatically adjusting …
The post Switch font color for different backgrounds with CSS appeared first on CSS-Tricks.




