Skip to content

Commit

Permalink
Disable list animation if user prefers reduced motion
Browse files Browse the repository at this point in the history
  • Loading branch information
danaYatsuta committed Apr 9, 2024
1 parent 9c173dc commit 83255bf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/TheTodoList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,12 @@ export default {
.list-leave-active {
position: absolute;
}
@media (prefers-reduced-motion) {
.list-move,
.list-enter-active,
.list-leave-active {
transition: none;
}
}
</style>

0 comments on commit 83255bf

Please sign in to comment.