npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

multiscroll-reactjs

v1.0.2

Published

Multiscroll + split screen for reactjs

Downloads

11

Readme

Multiscroll Plugin

This plugin adds the funcion long scrolling + split screen in ReactJs. To see a live example you can go here

Installing

  1. Clone the repo
  2. npm install -g gulp to install Gulp globally.
  3. npm install to resolve project dependencies.

Using

Run npm start from the command line and you are good to go!

The project is currently setup to transpile code under the /src folder using the /src/app.js file as an entry point.

Our resulting code ends up in the public directory.

How does it work?

You must import the plugin with:

import Multigroup from 'multigroup';

The on your app you must create this structure:

<MultiGroup >
    <multiScroll>
        <leftSide>
              // Page1: Content Left here
        </leftSide>
        <rightSide>
              //page1: Content Right here
        </rightSide>
    </multiScroll>
    <multiScroll>
        <leftSide>
              // Page2: Content Left here
        </leftSide>
        <rightSide>
              // Page2: Content Right here
        </rightSide>
    </multiScroll>
</MultiGroup>

As you can see, everything is grouped with <Multigroup> tag. Be aware that Multigroup is the only tag which is capitalized, the rest are first letter downcase.

Each page is a <multiscroll> tag. Inside it, you just specify the <leftside> to put the content on the left div, and <rightside> to put the content on the rightside. That's it!

Set up animation time

To set up the animation time you can add the optionanimTime on tag. You can add a float number, so for example it could be something like<MultiScroll animTime={1.5} ```. The hashes are necessary to store a float number there.

IF you leave empty, by default will be 3.0 seconds.

Set up background color

Also, you can specify a default background color for an specific slide. To do that, you have the bgColor. You must put this option on <multiScroll>option.

Example: <multiScroll bgColor="#ededed" > . It's important to specify the # symbol and put inside quotes.

Special thanks

I took a boilerplate browserify + gulp + react + additional items that has been created by @Caike and @Sergiocruz ( both from Codeschool). I save up some time thanks to their configuration.

The jellyfish picture has been taken by @danist07.

The building picture has been taken by @aleccutter

Follow me on github