Skip to content

Commit

Permalink
Added link to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikbulaj committed Apr 17, 2018
1 parent 7ed98d5 commit ecfe5f4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Declarative way for scrolling into view any page element
While developing landing page we needed way to scroll page to focus on registration form. It was obvious we will use [element.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) we just need find nice way how to.
This is just simple React element that provides declarative way to scroll to any element on page when it's clicked.

## Changelog
See [releases](/dominikbulaj/react-scroll-into-view/releases) tab
## Demo
See this [codesandbox](https://codesandbox.io/s/14lxm6jmm7)

## Installation
```
Expand Down Expand Up @@ -42,7 +42,9 @@ Than use it
| smooth | Boolean | true | Scroll behaviour; when true - transition animation will be smooth. Otherwise instant.
| style | Object | `{display: 'inline'}` | CSS styles passed to element

## Changelog
See [releases](/dominikbulaj/react-scroll-into-view/releases) tab

## TODO
* tests
* support for all [element.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) parameters
* demo
* support for all [element.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) parameters

0 comments on commit ecfe5f4

Please sign in to comment.