From ecfe5f48a4a1590c3eb2ad2b77723058cd087f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Bu=C5=82aj?= Date: Tue, 17 Apr 2018 13:13:12 +0200 Subject: [PATCH] Added link to demo --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 55a2b41..337d291 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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 \ No newline at end of file +* support for all [element.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) parameters \ No newline at end of file