Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
moved the available methods from panning to sprite, as [requested](#20 (comment))
  • Loading branch information
Spone committed Nov 11, 2014
1 parent 68d947b commit c872eda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 @@ -43,9 +46,6 @@ var panning = new Motio(element, {
panning.play(); // start animation
panning.pause(); // pause animation
panning.toggle(); // toggle play/pause
panning.toStart(); // animate to 1st frame and stop
panning.toEnd(); // animate to last frame and stop
panning.to(10); // animate to 11th frame and stop
```

## Download
Expand Down

0 comments on commit c872eda

Please sign in to comment.