You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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
npmnpm
Version published
Weekly downloads
166
53.7%
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

parallax

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