Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-basic-scroll

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-basic-scroll

React wrapper component for basicScroll

  • 1.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
789
increased by15.35%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 20 Sep 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc