Socket
Socket
Sign inDemoInstall

react-basic-scroll

Package Overview
Dependencies
11
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-basic-scroll

React wrapper component for basicScroll


Version published
Maintainers
1
Weekly downloads
1,585
increased by12.01%

Weekly downloads

Readme

Source

React-Basic-Scroll

A ReactJS components for basicScroll

basicscroll.electerious.com

Installation

yarn add react-basic-scroll
npm i react-basic-scroll

Basic Usage

import * as React from "react";
import {ReactBasicScroll} from "react-basic-scroll";
export const App extends React.Component {
    render() {
        const config = {
            from: 'top-top',
            to: 'bottom-bottom',
            props: {
                '--opacity': {
                    from: 0.1,
                    to: 0.99
                }
            }
        };
        return (
            <ReactBasicScroll config={config}>
                <h1 style="{{opacity: 'var(--opacity)'}}">Hello world!</h1>
            </ReactBasicScroll>
        );
    };
}

Props

config

An object defines the configuration for then element, see here.

Keywords

FAQs

Last updated on 20 Sep 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc