Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Position api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxenko committed Mar 28, 2017
1 parent 2971ddc commit ac024d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ Animations:
}
```

Only calculated position without applying it into element:
```js
MoveIntoView(childElement).position(); // default 0.5 0.5
MoveIntoView(childElement).position(1); // x: 1 y default 0.5

MoveIntoView(childElement).position(0.5, 0.5);

// returns { x: Number, y: Number }
```


#### License

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "move-into-view",
"version": "0.0.6",
"version": "0.0.7",
"description": "move-into-view is such as scroll-into-view but better.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit ac024d3

Please sign in to comment.