1.0.4 • Published 2 years ago

@torc/react-fullscreen-scroller v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

A simple fullscreen scroller component built with React. Made by Opentorc

Installation

npm:

npm install @torc/react-fullscreen-scroller

yarn:

yarn add @torc/react-fullscreen-scroller

Getting started with React FullScreen Scroller

Here is an example of a basic using FullScreenScroller component:

import React from "react";
import FullScreenScroller from "@torc/react-fullscreen-scroller";
import "@torc/react-fullscreen-scroller/dist/index.css";

function App() {
  <FullScreenScroller desktopBreakPoint={768} controls>
    <div>
      <p>First screen</p>
    </div>

    <div>
      <p>Second screen</p>
    </div>
  </FullScreenScroller>;
}

Edit Button

Basic features

ActionDescription
Press arrow down / page down / wheel downScroll to the next screen
Press arrow top / page up / wheel upScroll to the previous screen
Press 1, 2...9Jump to a specific screen

Props

NameTypeDescriptionDefault value
controlsbooleanWhether slide navigation will be showntrue
hideControlsOnFirstSlidebooleanWhether slide navigation will be hidden on the first slidetrue
desktopBreakPointnumberThe width of the device screen on which the module will work1024
containerStyleobjectThe styles object for the parent container of the scroller{}
slideContainerStyleobjectThe styles object for the container of each slide in scroller{}
controlsStyle.containerobjectThe styles object for the parent container of the controls{}
controlsStyle.slideNumberobjectThe styles object for the current slide number{}
controlsStyle.activeControlobjectThe styles object for the active control circle{}
controlsStyle.inactiveControlobjectThe styles object for the inactive control circle{}
containerClassNamestringclassName for the parent container of the scroller""
slideContainerClassNamestringclassName for the container of each slide in scroller""
controlsContainerClassNamestringclassName for the parent container of the controls""
slideNumberClassNamestringclassName for the current slide number""
activeControlClassNamestringclassName for the active control circle""
inactiveControlClassNamestringclassName for the inactive control circle""
1.0.2

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.0

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago