Raxol.Animation.Accessibility (Raxol v0.3.0)

View Source

Handles accessibility concerns for the Animation Framework, specifically adapting animations for reduced motion preferences.

Summary

Functions

Adapts an animation definition for cognitive accessibility by increasing its duration.

Adapts an animation definition based on reduced motion settings.

Functions

adapt_for_cognitive_accessibility(animation)

Adapts an animation definition for cognitive accessibility by increasing its duration.

This makes animations slower and potentially easier to follow.

adapt_for_reduced_motion(animation)

Adapts an animation definition based on reduced motion settings.

Currently, it significantly shortens the duration to provide a near-instant transition. Alternative strategies include setting duration to 0 or changing animation type.