Menu

Ask the agent for a reduced-motion path when it adds an animation
📰

Ask the agent for a reduced-motion path when it adds an animation

DEV Community: css·Sherotree·13 days ago
#tylZhxmt
#devtocss#devto#dev#motion#reduced
Long article (517 words) — no AI summary yet.
Reading 0:00
15s threshold

The agent adds a delightful entrance: a 400ms slide plus a fade, triggered whenever the drawer opens. It looks polished in the default OS setting. On a machine with “reduce motion” enabled, the drawer still slides, because nobody asked the model to read prefers-reduced-motion .

I’ve started requiring a reduced-motion note in any agent PR that adds an animation, transition, or view transition . The note can be “wrapped in the existing motion-safe utility” or “this one is a 150ms opacity fade, which we allow.” Silence is not a plan.

Why this gets dropped

The happy path is what the prompt described: “animate the panel in.” Tutorials still lead with @keyframes and transition: all . prefers-reduced-motion is a second paragraph the model will skip unless you make it a gate.

The cost is not theoretical.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.