From cb80e815bf1db5a7acc52b3923566ff117fb8acc Mon Sep 17 00:00:00 2001 From: Prayag Verma Date: Thu, 14 Jan 2016 15:26:29 +0530 Subject: [PATCH 1/2] refactor(readme): change words and replace ; with : --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f96ba5..1261fa8 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ 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), @@ -30,7 +30,7 @@ var e1 = document.querySelector(X), cta(e1, e2); ``` -Triggering a reverse animation; +Triggering a reverse animation: ```js var e1 = document.querySelector('#js-source-element'), From 71b0a595a36044262f70988e6589f60844483dea Mon Sep 17 00:00:00 2001 From: Prayag Verma Date: Thu, 14 Jan 2016 15:37:11 +0530 Subject: [PATCH 2/2] refactor(readme): add gifs to showcase the effects --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1261fa8..669a0b0 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ var e1 = document.querySelector(X), e2 = document.querySelector(Y); cta(e1, e2); ``` +![animation](http://i.imgur.com/trVHJE1.gif) Triggering a reverse animation: @@ -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: