Skip to content

Animated connections don't honor prefers-reduced-motion #1979

Done

Description

@sznowicki

Hello there

Coming here because some people at my organisation complained about other people making animated connections in their diagrams which makes that first group kinda dizzy.

I checked the styles that are generated by d2 and it seems you're adding a css animation properties for path element.

I'd strongly suggest enhancing it with some sort of CSS property that reacts on prefers-reduced-motion query so it's NOT animating at all when it's set to reduced.

I believe this small change would increase accessibility of this wonderful tool.

Activity

  1. added
    good first issue
    improvement
    on Jun 20, 2024
  2. chsong1 commented on Jul 14, 2026

    @chsong1

    Hi! I’m starting on this. I’ll trace where animated-connection CSS is generated, add a reduced-motion override without changing the default animation, and include the repository-required regression coverage. I’ll keep the scope to #1979. This work is assisted by OpenAI Codex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueimprovement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions