Radial Gradient Recipes

Radial gradients are pretty dang cool. It’s amazing we can paint the background of an element with them so easily. Easily is a relative term though. It’s certainly easier than needing to create a graphic in third-party software to use as the background, and the syntax is highly learnable. But it’s also not that easy to remember if you don’t use it often, and it’s more complicated than linear-gradient().

I figured I’d put together a page of reference examples, …

The post Radial Gradient Recipes appeared first on CSS-Tricks.

Read more

​Level Up Your JavaScript Error Monitoring

(This is a sponsored post.)

Automatically detect and diagnose JavaScript errors impacting your users with Bugsnag without changing your code or adding try/catch blocks. Get comprehensive diagnostic reports, know immediately which errors are worth fixing, and debug in a fraction of the time compared to traditional tools.

Bugsnag detects every single error and prioritizes errors with the greatest impact on your users. Get support for 50+ platforms and integrate with the development and productivity tools your team already uses.…

The post ​Level Up Your JavaScript Error Monitoring appeared first on CSS-Tricks.

Read more

AMP for WordPress 0.7 RC 1 Released

XWP, Automattic, and Google’s AMP team, has released 0.7 Release Candidate 1 of the AMP for WordPress plugin. Hinted at during AMP Conf 2018 earlier this year, 0.7 is a major release that contains significant new features. This release adds Native AMP support for all of the default widgets, embeds, (more…)
Read more

Code Review Part 2: Improving Readability and Performance of the FilterWPQuery Class

In the last article, I walked you through the problem of letting “no go” conditions flow through your code. I showed you how to refactor the code to solve the problem and make the code more readable.  In this article, you and I will continue doing a code review and refactoring of the FilterWPQuery in Josh …
The post Code Review Part 2: Improving Readability and Performance of the FilterWPQuery Class appeared first on Torque.
Read more

10 Examples of Timeless Apple Design

When we set out to create a list of ten historic Apple products that feature timeless design, it seemed a little daunting. The reality is that it was anything but. Apple has been at the forefront of design and product design innovation since the Apple I in 1976. (Yes, Apple really has been making computers […]
Read more

Understanding React `setState`

React components can, and often do, have state. State can be anything, but think of things like whether a user is logged in or not and displaying the correct username based on which account is active. Or an array of blog posts. Or if a modal is open or not and which tab within it is active.

React components with state render UI based on that state. When the state of components changes, so does the component UI. …

The post Understanding React `setState` appeared first on CSS-Tricks.

Read more

Grid to Flex

Una Kravets shows how to make layouts in CSS Grid with flexbox fallbacks for browsers that don’t support those grid properties just yet. Una writes:

CSS grid is AMAZING! However, if you need to support users of IE11 and below, or Edge 15 and below, grid won’t really work as you expect…This site is a solution for you so you can start to progressively enhance without fear!

The site is a provides examples using common layouts and component patterns, including …

The post Grid to Flex appeared first on CSS-Tricks.

Read more

Preparing your content for the Extended Reality (XR) Future

You’ve probably heard rumblings in the tech industry around the innovations in Virtual Reality, Augmented Reality, and Mixed Reality. These mediums can broadly be defined as Extended Reality or XR. My first venture into development in XR was in 2010 when I was exploring Flash development. My application was straightforward; show the webcam a Quick …
The post Preparing your content for the Extended Reality (XR) Future appeared first on Torque.
Read more