Skip to content

Commit a3aae0d

Browse files
committed
only animate in visbug if user has no motion preferences
1 parent b6a491a commit a3aae0d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/components/vis-bug/vis-bug.element.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
max-width: min-content;
99

1010
opacity: 0;
11-
transform: translateX(-200%);
1211
animation: present-yourself .3s ease forwards;
12+
13+
@media (prefers-reduced-motion: no-preference) {
14+
transform: translateX(-200%);
15+
}
1316
}
1417

1518
:host > ol {

0 commit comments

Comments
 (0)