summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-06 11:41:19 +0000
committerwout <wout@impinc.co.uk>2013-03-06 11:41:19 +0000
commit4ac306928d6eabe49d4f29cf7f57a9be9d1a14e4 (patch)
treec44027e20e50b201968ffcd62d34c51874351631
parentf7be50c638587f5028a9c4cd54c433690c6fc671 (diff)
downloadsvg.js-4ac306928d6eabe49d4f29cf7f57a9be9d1a14e4.tar.gz
svg.js-4ac306928d6eabe49d4f29cf7f57a9be9d1a14e4.zip
Updated README
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index d9d3237..ab1ee8a 100644
--- a/README.md
+++ b/README.md
@@ -410,14 +410,14 @@ rect.animate().center(200, 200)
```
### Animating along keyframes
-If you want to perform your own actions along and during the animations you can use the `along()` method:
+If you want to perform your own actions during the animations you can use the `during()` method:
```javascript
var position
, from = 100
, to = 300
-rect.animate(3000).move(100, 100).along(function(pos) {
+rect.animate(3000).move(100, 100).during(function(pos) {
position = from + (to - from) * pos
})
```