diff --git a/README.md b/README.md index eb06ff8..c6702e4 100644 --- a/README.md +++ b/README.md @@ -40,12 +40,12 @@ 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 +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 @@ -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. \ No newline at end of file +Please, read the [Contributing Guidelines](CONTRIBUTING.md) for this project.