From 68d947bf2a37c3e95d149fbf408aebd30f8fcaf1 Mon Sep 17 00:00:00 2001 From: Hans Lemuet Date: Tue, 11 Nov 2014 15:48:17 +0100 Subject: [PATCH] Update README.md small mistake fixed here to ;) --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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.