diff options
author | wout <wout@impinc.co.uk> | 2013-03-06 11:41:19 +0000 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-03-06 11:41:19 +0000 |
commit | 4ac306928d6eabe49d4f29cf7f57a9be9d1a14e4 (patch) | |
tree | c44027e20e50b201968ffcd62d34c51874351631 | |
parent | f7be50c638587f5028a9c4cd54c433690c6fc671 (diff) | |
download | svg.js-4ac306928d6eabe49d4f29cf7f57a9be9d1a14e4.tar.gz svg.js-4ac306928d6eabe49d4f29cf7f57a9be9d1a14e4.zip |
Updated README
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 }) ``` |