Prise en compte du réglage pour minimiser la quantité de mouvements non essentiels.

This commit is contained in:
nono-lqdn 2026-01-30 11:33:55 +01:00 committed by Nono
parent a3c6e8893f
commit d6158c9aa0

View file

@ -25,6 +25,12 @@ main img.draggable {
animation-iteration-count: infinite; animation-iteration-count: infinite;
} }
@media (prefers-reduced-motion) {
.draggable:hover {
/* In case the user doesn't want thing to wiggle, we disable the animation */
}
}
@keyframes shake { @keyframes shake {
0% { transform: translate(1px, 1px) rotate(0deg); } 0% { transform: translate(1px, 1px) rotate(0deg); }
10% { transform: translate(-1px, -2px) rotate(-1deg); } 10% { transform: translate(-1px, -2px) rotate(-1deg); }