diff --git a/README.md b/README.md index 9f96ba5..669a0b0 100644 --- a/README.md +++ b/README.md @@ -22,15 +22,16 @@ Installation Usage ----- -In very basic form, you can animate an element with selector X onto an element with selector Y: +In its basic form, you can animate an element with selector X onto an element with selector Y: ```js var e1 = document.querySelector(X), e2 = document.querySelector(Y); cta(e1, e2); ``` +![animation](http://i.imgur.com/trVHJE1.gif) -Triggering a reverse animation; +Triggering a reverse animation: ```js var e1 = document.querySelector('#js-source-element'), @@ -40,6 +41,7 @@ var reverseAnimate = cta(e1, e2); // Reverse previous animation. `options` and `callback` can be passed to this function too. reverseAnimate(); ``` +![animation](http://i.imgur.com/yMeA6mx.gif) Specify animation duration: