refactor: prefers reduced motion

This commit is contained in:
tglide authored and Christy Jacob committed 2023-05-01 17:32:29 +05:30
1 parent 100507a1d1
commit c12b4b00fc
2 files changed
+15

No files matched your search

+6
View File
@@ -177,6 +177,12 @@
</main>
<style lang="scss">
@media (prefers-reduced-motion: reduce) {
main * {
animation: none !important;
}
}
@keyframes float {
0% {
transform: translatey(0px);
+9
View File
@@ -276,6 +276,15 @@
</div>
<style lang="scss">
@media (prefers-reduced-motion: reduce) {
.cb-card,
.cb-card * {
transition: none !important;
animation: none !important;
pointer-events: none !important;
}
}
:root {
--mx: 50%;
--my: 50%;