Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,20 @@ AOS.init({

});
```
#### Accessibility

To improve accessibility and prevent triggering vestibular disorders set:
* `disable: window.matchMedia('(prefers-reduced-motion: reduce)')`

Examples:
```js
//Only enable AOS animations if prefers-reduced-motion set to false
AOS.init({
disable: window.matchMedia('(prefers-reduced-motion: reduce)')
});
```

---

### 2. Set animation using `data-aos` attribute:

Expand Down