Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme changes : fix errors, change words and add gifs #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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