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
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ You can control the animation by options.

### events

Onepage can trigger events. You can subscribe an event by:
Onepage can trigger events. You can subscribe to an event by:

```js
onepage.on('move', function(page) {
Expand All @@ -51,7 +51,7 @@ onepage.on('move', function(page) {
```

- **move(page)**: when page moves
- **end(page)**: when animation end
- **end(page)**: when animation ends

You can subscribe events with: `on`, `once`. You can remove an event with
`off`.
Expand All @@ -60,7 +60,7 @@ Learn more about event emitter at [component/emitter](https://github.com/compone

### .move(page)

Move to the the given page number. Page begin with 0.
Move to the given page number. the page begins with 0.

```js
onepage.move(2)
Expand Down