Issue 06 · October 2026

Your animations are fighting your users

One CSS media query, one small challenge, three links worth your time.

From Mushfiq Alam Sami <mushfiq9912@gmail.com>

Hey, welcome back to Notes on craft.

Each issue is short on purpose: one idea you can use today, one small problem to chew on, and a few links I actually read. If it takes more than five minutes, I wrote it wrong.

Tip of the issue

Respect reduced motion by default

Some people get dizzy or distracted by parallax, big slides and constant movement. Their operating system has a setting for that, and the browser passes it on to you as a media query.

Instead of switching animations off one by one, flip the default: keep motion for people who haven't asked for less, and let everyone else get a calm page.

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

In framer-motion, the useReducedMotion hook gives you the same signal in JavaScript, so you can skip the big movement and keep a simple fade.

Small challenge

Debounce, but keep the first call

Write a function that runs immediately on the first call, then ignores every call until 300ms pass with no new calls. Search boxes and resize handlers love this shape. Bonus: make it cancellable, and type it so the wrapped function keeps its arguments.

Hint: you need one timer variable and one boolean. No libraries.

Worth your time

Project idea

A motion audit script

Build a small tool that loads a page, lists every element with a CSS animation or transition, and flags the ones that keep running under reduced motion. You will learn the Web Animations API, and you will end up with something you can run on your own site.

That's it. Reply to this email with what you built, or what broke. I read every one.

Mushfiq

Got something in mind?

mushfiq9912@gmail.com

Dhaka, Bangladesh