The 2.5 Ways to Handle Web Events

By Chris Coyier on

How many ways are there to add an event (like a click) to an element? Andrea Giammarchi covers them. The first two are basically the same (hence the “2.5” in the title). I’d say the vast majority of event handling is through addEventListener, but the clearly listed advantages/disadvantages Andrea goes through are worth understanding. The […]

Colormaxxing

By Chris Coyier on

Sometimes giving a good name to something is what helps it sink into people’s minds. Daniel Karuna may have pulled that off here with “Colormaxxing“. The P3 color space is just bigger than the sRGB color space, and the extra colors tend to be in the more intense regions. What if I told you that #ff0000 or rgb(255, […]

Mesh Gradient Generator

By Chris Coyier on

A nice tool for generating mesh gradients from Erik D. Kennedy. You might call it a bit of a trend, but as Erik pointed out in a recent newsletter, they can be quite versatile because it’s just a nice background look that doesn’t demand anything in particular from the brand.

Hide a message in an emoji

By Chris Coyier on

Pretty interesting trickery here, encoding a secret message in an emoji that you automatically get when you copy/paste it from Paul Butler. Most unicode characters do not have variations associated with them. Since unicode is an evolving standard and aims to be future-compatible, variation selectors are supposed to be preserved during transformations, even if their […]

Interop 2025 Announced

By Chris Coyier on

The Interop 2025 list is out. Interoperability matters because it ensures that the code you write for the web will work the same way for your users regardless of browser and device. The Interop project is a yearly effort where browser implementers survey developers about top pain-points and agree on areas where we will concentrate resources to […]

JavaScript Temporal is Coming

By Chris Coyier on

Brian Smith on MDN: This is big news for web developers because working with dates and times in JavaScript will be hugely simplified and modernized. Temporal is designed as a full replacement for the Date object, making date and time management reliable and predictable. Temporal adds support for time zone and calendar representations, many built-in methods for […]