Macguire's Docs
GitHubGitHub (opens in a new tab)
  • Setup
    • Install Proxmox
    • Get ISOs
      • pfSense
      • Create Vms
      • pfSense
      • Wireguard
  • macOS
  • Topics
  • Alpine
  • Ansible
    • Resize VM Disk
  • Apache
  • Asdf
  • Borg
  • Dotfiles
  • Favicon
  • Find
  • Firewalld
  • Git
  • Host
  • Index
  • JavaScript
  • Linux
  • Message Authentication Code Incorrect
  • Moving Proxmox to New Disk
  • Mysql
  • Nextra
  • PHP
  • Phpmyadmin
  • Python
  • Rsync
  • Setup
  • Simplelogin
  • Ssh
  • Stat
  • Symbolic Links
  • TypeScript
  • WordPress
    • Box Shadow
    • Motion
    • Adguard Home
    • General
    • Home Assistant
    • Nginx Proxy Manager
    • Mdx
  • Setup
    • Install Proxmox
    • Get ISOs
      • pfSense
      • Create Vms
      • pfSense
      • Wireguard
  • macOS
  • Topics
  • Alpine
  • Ansible
    • Resize VM Disk
  • Apache
  • Asdf
  • Borg
  • Dotfiles
  • Favicon
  • Find
  • Firewalld
  • Git
  • Host
  • Index
  • JavaScript
  • Linux
  • Message Authentication Code Incorrect
  • Moving Proxmox to New Disk
  • Mysql
  • Nextra
  • PHP
  • Phpmyadmin
  • Python
  • Rsync
  • Setup
  • Simplelogin
  • Ssh
  • Stat
  • Symbolic Links
  • TypeScript
  • WordPress
    • Box Shadow
    • Motion
      • Disable animations for prefers-reduced-motion
    • Adguard Home
    • General
    • Home Assistant
    • Nginx Proxy Manager
    • Mdx

On This Page

  • Disable animations for prefers-reduced-motion
Question? Give us feedback → (opens in a new tab)Edit this page
css
Motion

CSS

Disable animations for prefers-reduced-motion

To play an animation only if prefers-reduced-motion is false, wrap the animation in a media query:

@media not (prefers-reduced-motion) {
	animation-name: animate-in;
	animation-duration: 300ms;
	animation-delay: calc(var(--animation-order) * 100ms);
	animation-fill-mode: both;
	animation-timing-function: ease-in-out;
}
Box ShadowAdguard Home

Macguire's docs