4
In the CSS there is the prefers-reduced-motion
. This media-query says that the user prefers reduced animations (off) or not, it respects the configuration that the user chose in the Windows settings (or other operating system):
In Windows 10: Settings > Ease of Access > Display > Show animations in Windows.
How can I get the same information (whether the animations are turned off or not) natively? How the browser itself can identify whether such a feature is disabled?
Is there any Windowproc when this setting is changed?
For more details: I am creating a Windows window using user32.dll
(CreateWindowExW
), and then drawing her with Opengl. I’m using Golang, calling the DLL via syscall.NewLazySystemDLL
. I need to know when animations are off so that the application behavior in Windows and browser are identical.
This probably gets recorded in the Windows registry
– bfavaretto