d2
d2 copied to clipboard
Animated connections don't honor prefers-reduced-motion
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.