Skip to content

Commit

Permalink
Merge pull request #20 from Spone/patch-3
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
darsain committed Nov 11, 2014
2 parents 0be1ceb + c872eda commit e23274b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ var sprite = new Motio(element, {
sprite.play(); // start animation
sprite.pause(); // pause animation
sprite.toggle(); // toggle play/pause
sprite.toStart(); // animate to 1st frame and stop
sprite.toEnd(); // animate to last frame and stop
sprite.to(10); // animate to 11th frame and stop
```

Seamless background panning mode:
Expand All @@ -40,12 +43,9 @@ var panning = new Motio(element, {
fps: 30, // Frames per second. More fps = higher CPU load.
speedX: -30 // Negative horizontal speed = panning to left.
});
sprite.play(); // start animation
sprite.pause(); // pause animation
sprite.toggle(); // toggle play/pause
sprite.toStart(); // animate to 1st frame and stop
sprite.toEnd(); // animate to last frame and stop
sprite.to(10); // animate to 11th frame and stop
panning.play(); // start animation
panning.pause(); // pause animation
panning.toggle(); // toggle play/pause
```

## Download
Expand All @@ -70,4 +70,4 @@ Can be found in the [docs](https://github.com/darsain/motio/tree/master/docs) di

## Contributing

Please, read the [Contributing Guidelines](CONTRIBUTING.md) for this project.
Please, read the [Contributing Guidelines](CONTRIBUTING.md) for this project.

0 comments on commit e23274b

Please sign in to comment.