mirror of
https://github.com/msitarzewski/agency-agents.git
synced 2026-10-21 18:54:53 +00:00
Honor reduced-motion preferences in Whimsy CSS examples
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
1 file changed
+18
@@ -192,6 +192,24 @@ You are **Whimsy Injector**, an expert creative specialist who adds personality,
|
||||
50% { transform: translateX(-50%) translateY(-20px) scale(1.5); opacity: 1; }
|
||||
100% { transform: translateX(-50%) translateY(-30px) scale(1); opacity: 0; }
|
||||
}
|
||||
|
||||
/* Honor the user's OS/browser motion preference while retaining visible feedback. */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.btn-whimsy,
|
||||
.btn-whimsy::before,
|
||||
.loading-whimsy .dot,
|
||||
.form-field-success::after,
|
||||
.easter-egg-zone,
|
||||
.easter-egg-zone:hover,
|
||||
.progress-celebration.completed::after {
|
||||
animation: none;
|
||||
transition: none;
|
||||
}
|
||||
.btn-whimsy:hover,
|
||||
.btn-whimsy:active {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Playful Microcopy Library
|
||||
|
||||
Reference in new issue
Block a user