---
title: "Accessibility"
description: "Make nanime animations jump to their end state for visitors who ask for less motion."
canonical_url: "https://nanimejs.netlify.app/guides/accessibility"
---
# Accessibility

> Make nanime animations jump to their end state for visitors who ask for less motion.

Make `nanime` animations jump to their end state for visitors who turn on
reduced motion.

## Follow the reduced motion setting

<table>
<thead>
  <tr>
    <th align="left">
      Value
    </th>
    
    <th align="left">
      Reduces motion
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td align="left">
      <code>
        'never'
      </code>
    </td>
    
    <td align="left">
      Never. This is the default.
    </td>
  </tr>
  
  <tr>
    <td align="left">
      <code>
        'system'
      </code>
    </td>
    
    <td align="left">
      When the visitor's <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion" rel="nofollow" target="_blank">
        <code>
          prefers-reduced-motion
        </code>
      </a>
      
       setting is <code>
        reduce
      </code>
    </td>
  </tr>
  
  <tr>
    <td align="left">
      <code>
        'always'
      </code>
    </td>
    
    <td align="left">
      Always
    </td>
  </tr>
</tbody>
</table>

Set `reducedMotion` in `nuxt.config.ts`:

```ts [nuxt.config.ts]
export default defineNuxtConfig({
  modules: ['nanime'],
  nanime: {
    reducedMotion: 'system',
  },
})
```

When reduced motion is on, these jump to their end state instead of
playing:

- `useAnimate`, `useWaapiAnimate`, `useAnimeTimeline`, `useAnimatable` and
`useScrambleText`
- `<AnimeTransition>` and `<AnimeTransitionGroup>`
- `<AnimeLayoutGroup>` and `useAnimeLayout`

`useDraggable` and `useAnimeScroll` are not affected. They follow the
pointer and the scroll position, which the visitor controls.

## Let visitors choose in your app

Call `updateAppConfig()` to change `reducedMotion` while the app runs, for
example from a settings toggle:

```vue [MotionSetting.vue]
<script setup lang="ts">
function setReducedMotion(reduce: boolean) {
  updateAppConfig({ nanime: { reducedMotion: reduce ? 'always' : 'system' } })
}
</script>
```

Components use the new setting on their next run. Composables read it
when they create or rebuild an animation, so one that is already running
is not changed.


## Sitemap

See the full [sitemap](https://nanimejs.netlify.app/sitemap.md) for all pages.
