mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-30 01:47:54 +01:00
prefers-reduced-motion a11y adjustment
This commit is contained in:
1 parent
85545af678
commit
a69067b4c5
2 files changed
+57
-1
No files matched your search
@@ -114,6 +114,51 @@ html, body {
|
||||
transform: scale(1) translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* reduced-motion animations */
|
||||
@media (prefers-reduced-motion) {
|
||||
.fly-in-from-top {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.swoop-in-enter-active,
|
||||
.swoop-in-leave-active,
|
||||
.swoop-out-enter-active,
|
||||
.swoop-out-leave-active,
|
||||
.swoop-left-enter-active,
|
||||
.swoop-left-leave-active,
|
||||
.swoop-right-enter-active,
|
||||
.swoop-right-leave-active {
|
||||
transition-duration: 0.05s;
|
||||
transition-property: opacity;
|
||||
}
|
||||
|
||||
.swoop-left-enter,
|
||||
.swoop-right-leave-active {
|
||||
opacity: 0;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.swoop-left-leave-active,
|
||||
.swoop-right-enter {
|
||||
opacity: 0;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.swoop-in-enter,
|
||||
.swoop-out-leave-active {
|
||||
opacity: 0;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.swoop-in-leave-active,
|
||||
.swoop-out-enter {
|
||||
opacity: 0;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in new issue
Block a user