When a prefers-reduced-motion is set to reduce, it indicates that the user prefers less motion, which may trigger discomfort for those with vestibular motion disorders on the page. Remember to update the text of actions and change elements' other visual aspects too!Īnd when it comes to an animation's timing and duration, avoid changing the state of something at a rate of three times per second or greater - which can trigger photosensitive epilepsy.Īll included animations now support and leverage the prefers-reduced-motion CSS media feature (opens new window) to detect if a user has requested that the system minimize the amount of non-essential motion it uses. There are 12 other projects in the npm registry using react-type-animation. Start using react-type-animation in your project by running npm i react-type-animation. Latest version: 3.2.0, last published: 3 months ago. In general, it's best to use animations on the web in a complementary way rather than the only way to note a state change in UI. Customizable React typing animation component based on typical. Using animations on the web in the most accessible way requires a little extra consideration: