summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rwxr-xr-xREADME.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index d4f181a..7d72d79 100755
--- a/README.md
+++ b/README.md
@@ -1790,10 +1790,10 @@ __`returns`: `SVG.FX`__
Say you want to control the position of an animation with an external event, then the `at()` method will proove very useful:
```javascript
-var animate = draw.rect(100, 100).move(50, 50).animate('=').move(200, 200)
+var animation = draw.rect(100, 100).move(50, 50).animate('=').move(200, 200)
document.onmousemove = function(event) {
- animate.at(event.clientX / 1000)
+ animation.at(event.clientX / 1000)
}
```