Skip to main content

no_animation

Function no_animation 

Source
pub fn no_animation() -> bool
Expand description

Detect if animations should be skipped.

Skips intentional-friction delays and spinner animations for users with vestibular disorders. Follows the PREFER_REDUCED_MOTION accessibility media query convention.

ยงExample

use netspeed_cli::terminal::no_animation;

if no_animation() {
    print!("Result: A");
} else {
    // Skip animation for accessibility
    print!("Result: A (animation skipped)");
}