@@ -33,6 +33,7 @@ export default {
33
33
column: 0 ,
34
34
},
35
35
KEY_IGNORE ,
36
+ animation: ! inspectorOptions .reduceMotion ,
36
37
}
37
38
},
38
39
computed: {
@@ -308,7 +309,7 @@ export default {
308
309
< template v- if = " overlayVisible && linkParams" >
309
310
< div
310
311
ref= " floatsRef"
311
- class = " vue-inspector-floats vue-inspector-card"
312
+ class = " vue-inspector-floats vue-inspector-card" : class = " [{ 'vue-inspector-animated': animation }] "
312
313
: style= " floatsStyle"
313
314
>
314
315
< div> {{ linkParams .title }}: {{ linkParams .line }}: {{ linkParams .column }}< / div>
@@ -317,7 +318,7 @@ export default {
317
318
< / div>
318
319
< / div>
319
320
< div
320
- class = " vue-inspector-size-indicator"
321
+ class = " vue-inspector-size-indicator" : class = " [{ 'vue-inspector-animated': animation }] "
321
322
: style= " sizeIndicatorStyle"
322
323
/ >
323
324
< / template>
@@ -369,7 +370,6 @@ export default {
369
370
z- index: 2147483647 ;
370
371
position: fixed;
371
372
transform: translateX (- 50 % );
372
- transition: all 0 .1s ease- in ;
373
373
pointer- events: none;
374
374
}
375
375
@@ -379,7 +379,16 @@ export default {
379
379
background- color: #42b88325 ;
380
380
border: 1px solid #42b88350 ;
381
381
border- radius: 5px ;
382
- transition: all 0 .1s ease- in ;
383
382
pointer- events: none;
384
383
}
384
+
385
+ .vue - inspector- animated {
386
+ transition: all 0 .1s ease- in ;
387
+ }
388
+
389
+ @media (prefers - reduced - motion ) {
390
+ .vue - inspector- animated {
391
+ transition: none ! important;
392
+ }
393
+ }
385
394
< / style>
0 commit comments