devtools-next icon indicating copy to clipboard operation
devtools-next copied to clipboard

Option to disable animation when inspecting components

Open alexzhang1030 opened this issue 1 year ago • 1 comments

Option to disable animation when inspecting components on the page with "Select component on the page" button.

It can be very distracting jumping between large number of components on the small area.

Maybe take into account reduced motion preference and also have a toggle to force this option (similar to dark/light mode toggle in settings).

I suppose this is related to vite-plugin-vue-inspector so it’s best to start there with setting which can be toggled via devtools?

Originally posted by @niksy in https://github.com/vuejs/devtools-next/discussions/111#discussioncomment-10333823

alexzhang1030 avatar Aug 14 '24 07:08 alexzhang1030

https://github.com/vuejs/devtools/issues/633#issue-2590451739

I greatly dislike the bounce effect in graph panel, and I think that's not my own taste.

There are some people which can feel dizzy when watching complicated animations, and I am one of them. Not kidding, I feel very bad every time I try to enter the graph panel, that's also why CSS standard have a Prefers-reduced-motion media in a11y part.

We can respect the Prefers-reduced-motion, together with a higher priority option to control the animation behavior, for better a11y :)

Mister-Hope avatar Dec 15 '24 17:12 Mister-Hope