diff --git a/assets/css/browser.css b/assets/css/browser.css index 40f56b1..4112da9 100644 --- a/assets/css/browser.css +++ b/assets/css/browser.css @@ -1309,4 +1309,18 @@ cp { color: #ff00ff } 100% { transform: scale(1.1); } +} + +/* + * Disable all transitions and animations if the user has reduced motion enabled in their sytem settings + * Also disabled on devices that may be slow to render new frames for performance optimization + */ +@media screen and + (prefers-reduced-motion: reduce), + (update: slow) { + *, *::before, *::after { + animation-duration: 0.001ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.001ms !important; + } } \ No newline at end of file diff --git a/html/home.html b/html/home.html index 8f736ec..d361973 100644 --- a/html/home.html +++ b/html/home.html @@ -25,22 +25,6 @@ -