|
5 | 5 | <title>React-custom-scroll by rommguy</title>
|
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1">
|
7 | 7 | <link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
|
8 |
| - <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'> |
| 8 | + <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'> |
9 | 9 | <link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
|
10 | 10 | <link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
|
11 | 11 | </head>
|
12 | 12 | <body>
|
13 | 13 | <section class="page-header">
|
14 | 14 | <h1 class="project-name">React-custom-scroll</h1>
|
15 |
| - <h2 class="project-tagline">Custom scroll React component</h2> |
| 15 | + <h2 class="project-tagline">Easily customize the browser scroll bar with native OS scroll behavior</h2> |
16 | 16 | <a href="https://github.com/rommguy/react-custom-scroll" class="btn">View on GitHub</a>
|
17 | 17 | <a href="https://github.com/rommguy/react-custom-scroll/zipball/master" class="btn">Download .zip</a>
|
18 | 18 | <a href="https://github.com/rommguy/react-custom-scroll/tarball/master" class="btn">Download .tar.gz</a>
|
19 | 19 | </section>
|
20 | 20 |
|
21 | 21 | <section class="main-content">
|
22 |
| - <h1> |
23 |
| -<a id="react-custom-scroll" class="anchor" href="#react-custom-scroll" aria-hidden="true"><span class="octicon octicon-link"></span></a>React-Custom-Scroll</h1> |
| 22 | + <h3> |
| 23 | +<a id="welcome-to-github-pages" class="anchor" href="#welcome-to-github-pages" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Welcome to GitHub Pages.</h3> |
24 | 24 |
|
25 |
| -<p>An easily designable, cross browser (!!), custom scroll with ReactJS<br> |
26 |
| -Animations and scroll rate <strong>exactly</strong> like native scroll </p> |
27 |
| - |
28 |
| -<h5> |
29 |
| -<a id="see-a-working-demo" class="anchor" href="#see-a-working-demo" aria-hidden="true"><span class="octicon octicon-link"></span></a>See a <a href="http://rommguy.github.io/react-custom-scroll/example/demo.html">working demo</a> |
30 |
| -</h5> |
| 25 | +<p>This automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here <a href="https://guides.github.com/features/mastering-markdown/">using GitHub Flavored Markdown</a>, select a template crafted by a designer, and publish. After your page is generated, you can check out the new <code>gh-pages</code> branch locally. If you’re using GitHub Desktop, simply sync your repository and you’ll see the new branch.</p> |
31 | 26 |
|
32 | 27 | <h3>
|
33 |
| -<a id="why-do-i-need-this-" class="anchor" href="#why-do-i-need-this-" aria-hidden="true"><span class="octicon octicon-link"></span></a>Why do I need this ?</h3> |
| 28 | +<a id="designer-templates" class="anchor" href="#designer-templates" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Designer Templates</h3> |
34 | 29 |
|
35 |
| -<ul> |
36 |
| -<li>Same design on all browsers</li> |
37 |
| -<li>Scrollbar above content instead of floating to the side - same layout on scrolled content as not scrolled content</li> |
38 |
| -</ul> |
| 30 | +<p>We’ve crafted some handsome templates for you to use. Go ahead and click 'Continue to layouts' to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved.</p> |
39 | 31 |
|
40 | 32 | <h3>
|
41 |
| -<a id="how-to-use-" class="anchor" href="#how-to-use-" aria-hidden="true"><span class="octicon octicon-link"></span></a>How to use ?</h3> |
42 |
| - |
43 |
| -<p>wrap your content with the custom scroll component |
44 |
| -remove overflow style properties from your content root component - The custom scroll will take care of it</p> |
| 33 | +<a id="creating-pages-manually" class="anchor" href="#creating-pages-manually" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Creating pages manually</h3> |
45 | 34 |
|
46 |
| -<pre><code><customScroll> |
47 |
| - your content |
48 |
| -</customScroll> |
49 |
| - |
50 |
| -</code></pre> |
| 35 | +<p>If you prefer to not use the automatic generator, push a branch named <code>gh-pages</code> to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.</p> |
51 | 36 |
|
52 | 37 | <h3>
|
53 |
| -<a id="options-react-props" class="anchor" href="#options-react-props" aria-hidden="true"><span class="octicon octicon-link"></span></a>Options (react props)</h3> |
54 |
| - |
55 |
| -<ul> |
56 |
| -<li>allowOuterScroll : boolean, default false. Blocks outer scroll while scrolling the content</li> |
57 |
| -<li>heightRelativeToParent : string, default undefined. Content height limit is relative to parent - the value should be the height limit.</li> |
58 |
| -<li>onScroll - function, default undefined. Listener that will be called on each scroll.</li> |
59 |
| -<li>addScrolledClass - boolean, default false. If true, will add a css class 'content-scrolled' while being scrolled.</li> |
60 |
| -</ul> |
| 38 | +<a id="authors-and-contributors" class="anchor" href="#authors-and-contributors" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Authors and Contributors</h3> |
61 | 39 |
|
62 |
| -<h5> |
63 |
| -<a id="example-for-heightrelativetoparent" class="anchor" href="#example-for-heightrelativetoparent" aria-hidden="true"><span class="octicon octicon-link"></span></a>Example for heightRelativeToParent</h5> |
64 |
| - |
65 |
| -<pre><code><customScroll heightRelativeToParent="calc(100% - 20px)""> |
66 |
| - your content |
67 |
| -</customScroll> |
68 |
| -</code></pre> |
| 40 | +<p>You can <a href="https://help.github.com/articles/basic-writing-and-formatting-syntax/#mentioning-users-and-teams" class="user-mention">@mention</a> a GitHub username to generate a link to their profile. The resulting <code><a></code> element will link to the contributor’s GitHub Profile. For example: In 2007, Chris Wanstrath (<a href="https://github.com/defunkt" class="user-mention">@defunkt</a>), PJ Hyett (<a href="https://github.com/pjhyett" class="user-mention">@pjhyett</a>), and Tom Preston-Werner (<a href="https://github.com/mojombo" class="user-mention">@mojombo</a>) founded GitHub.</p> |
69 | 41 |
|
70 | 42 | <h3>
|
71 |
| -<a id="it-doesnt-work-please-help-me" class="anchor" href="#it-doesnt-work-please-help-me" aria-hidden="true"><span class="octicon octicon-link"></span></a>It doesn't work, please help me</h3> |
| 43 | +<a id="support-or-contact" class="anchor" href="#support-or-contact" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Support or Contact</h3> |
72 | 44 |
|
73 |
| -<ul> |
74 |
| -<li>Check if you forgot to remove 'overflow' properties from the content root element.</li> |
75 |
| -<li>Check if your height limit is relative to parent, and you didn't use heightRelativeToParent prop.</li> |
76 |
| -</ul> |
| 45 | +<p>Having trouble with Pages? Check out our <a href="https://help.github.com/pages">documentation</a> or <a href="https://github.com/contact">contact support</a> and we’ll help you sort it out.</p> |
77 | 46 |
|
78 | 47 | <footer class="site-footer">
|
79 | 48 | <span class="site-footer-owner"><a href="https://github.com/rommguy/react-custom-scroll">React-custom-scroll</a> is maintained by <a href="https://github.com/rommguy">rommguy</a>.</span>
|
|
83 | 52 |
|
84 | 53 | </section>
|
85 | 54 |
|
86 |
| - <script type="text/javascript"> |
87 |
| - var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); |
88 |
| - document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); |
89 |
| - </script> |
90 |
| - <script type="text/javascript"> |
91 |
| - try { |
92 |
| - var pageTracker = _gat._getTracker("UA-63606990-1"); |
93 |
| - pageTracker._trackPageview(); |
94 |
| - } catch(err) {} |
95 |
| - </script> |
96 |
| - |
| 55 | + |
97 | 56 | </body>
|
98 | 57 | </html>
|
99 |
| - |
0 commit comments