Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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:

Expand Down