July 22, 2019
  • 9:27 pm KickSat-2 project launches 105 cracker-sized satellites
  • 9:05 pm Apple’s new ecosystem world order and the privacy economy
  • 8:46 pm SEC expands its war on cryptocurrency companies with a lawsuit against Kik
  • 8:39 pm VCs bet $12M on Troops, a Slackbot for sales teams
  • 8:07 pm Movin’ Modals Along a Path

Here’s a bonafide CSS/HTML trick from Brad Frost and Dave Rupert where they use the <picture> element to switch out a GIF file with an image if the user has reduced motion enabled. This is how Brad goes about implementing that:

<picture>
  <!-- This image will be loaded if the media query is true  -->
  <source srcset="no-motion.jpg" media="(prefers-reduced-motion: reduce)"></source>

  <!--  Otherwise, load this gif -->
  <img srcset="animated.gif" alt="brick wall"/>
</picture>

How nifty is this? It makes me wonder if … Read article

The post Reducing motion with the picture element appeared first on CSS-Tricks.

READ MORE

There are a few differences between keyboards and screen readers and Léonie Watson highlights of them:

When using the tab key, keyboard focus and screen reader focus are synchronised with each other. The rest of the time, screen reader users have an enormous range of commands at their disposal for reading and navigating content independently of keyboard focus. The commands vary between screen readers, but they all have one thing in common: they’re tied to different HTML elements.

This is … Read article

The post The difference between keyboard and screen reader navigation appeared first on CSS-Tricks.

READ MORE

Dark mode designs are all the rage right now but here’s an interesting take: Wei Gao has built a night mode on her own site that uses mix-blend-mode: difference to create an effect that looks like this:

Wei explains how she implemented this technique and the edge cases she encountered along the way. I especially love what she had to say about mix-blend-mode functions here:

I remember first playing around with them in Photoshop years ago. Now that browsers are

Read article

The post Night Mode with Mix Blend Mode: Difference appeared first on CSS-Tricks.

READ MORE

I’ve heard people say that the #1 most exciting and important thing that came out of Google I/O this year was the evergreen Googlebot:

Today, we are happy to announce that Googlebot now runs the latest Chromium rendering engine (74 at the time of this post) when rendering pages for Search. Moving forward, Googlebot will regularly update its rendering engine to ensure support for latest web platform features.

Before this, I guess I never even thought about it.

I … Read article

The post Evergreen Googlebot appeared first on CSS-Tricks.

READ MORE

(This is a sponsored post.)

[Geoff:] I’ve built a fair number of WordPress sites in my day. It’s been my go-to since the 2.x-ish days because it works for any site, big or small. That’s the sort of solution and flexibility you like to have as a freelancer.

Boy, I wish I had Jetpack available in those early days.

Like WordPress itself, Jetpack is a good solution for many, many of the types of things clients are looking for … Read article

The post Using Jetpack to Accelerate WordPress Development appeared first on CSS-Tricks.

READ MORE

Greg Kohn looks at how to use Purgecss — a tool that helps remove unused styles — and Tailwind — a utility-based CSS framework — and why we might want to pair these tools together:

Tailwind, by intention, is aiming to equip you with an arsenal of utility classes by generating more than you need. There are some best practices which will help keep this overall build size down, like limiting your colors and breakpoints or turning off the modules

Read article

The post A Better Approach for Using Purgecss with Tailwind appeared first on CSS-Tricks.

READ MORE

Google announced at I/O that their font service will now support the font-display property which resolves a number of web performance issues. If you’re hearing cries of joy, that’s probably Chris as he punches the air in celebration. … Read article

The post Google Fonts is Adding font-display appeared first on CSS-Tricks.

READ MORE