new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Mantine · all subjects

hooks/use-reduced-motion

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

useReducedMotion hook overview

The useReducedMotion hook detects if the user prefers to reduce motion using the prefers-reduced-motion CSS media query. It uses the use-media-query hook under the hood and relies on the window.matchMedia() API.

useReducedMotion server-side rendering behavior

The useReducedMotion hook will always return false if the window.matchMedia() API is not available, such as during server-side rendering, unless an initial value is provided in the first argument.

useReducedMotion use case

Use the useReducedMotion hook to detect if the user prefers to reduce motion and conditionally set animation duration based on this preference.

useReducedMotion type definition

The useReducedMotion function signature is: function useReducedMotion(initialValue?: boolean, options?: UseMediaQueryOptions): boolean. The UseMediaQueryOptions interface has one property: getInitialValueInEffect (boolean).

Give your agent this brain