1.0.14 • Published 4 years ago

cahcnc91-click-scroll v1.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Click and Scroll Component

Installation

Run npm install --save cahcnc91-click-scroll

Usage

import React, { Component } from 'react'
import ClickAndScroll from "cahcnc91-click-scroll";

const Content = () => {
  return (
    <p>
      Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
      tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
      veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex eacommodo consequat. Duis aute irure dolor in reprehenderit in voluptate
      velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
      cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
      est laborum.
    </p>
  );
};

class Example extends Component {
  render() {
    return <ClickAndScroll sections={[
          {
            title: "TEST 1",
            component: Content
          },
          {
            title: "Test 2",
            component: Content
          },
          {
            title: "TEST 3",
            component: Content
          },
                    {
            title: "TEST 4",
            component: Content
          }
        ]}/>
  }
}

For overwriting default colors, provide color and backgroundColor.

const styles = {
  color: '#b0e0e6',
  backgroundColor: '#009bce',
}

<ClickAndScroll
  {...styles}
  sections={[
    {
      title: "TEST 1",
      component: Content,
    },
    {
      title: "Test 2",
      component: Content,
    },
  ]}
/>
1.0.14

4 years ago

1.0.12

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.19

4 years ago

1.0.1

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago