Reduced Motion Compliance #
TypeFlow checks window.matchMedia('(prefers-reduced-motion: reduce)'). When active, animations complete immediately.
Control this behavior explicitly:
TypeFlow.type('#headline', 'Text content', {
respectReducedMotion: true // default is true
});
ARIA Live Regions #
ariaLive is untouched by default to prevent screen reader noise.
Specify the desired live region policy for important announcements:
TypeFlow.type('#status-bar', 'Build passed in 1.4s', {
ariaLive: 'polite' // 'off' | 'polite' | 'assertive'
});