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 🙏

© 2026 – Pkg Stats / Ryan Hefner

lax-parallax

v0.0.3

Published

Simple react parallax component.

Readme

Lax

A React component for parallax.

Example

import Lax from "lax-parallax";

<Lax y="{80}" x="{20}"> Content here </Lax>

Attributes

| Property | Default | Description | | ---------------- | ------- | ---------------------------------------------------- | | id | random | Standard component id attribute | | className | "" | Standard component class name attribute | | x | 0 | How far to move along the x axis in pixels | | y | 0 | How far to move along the y axis in pixels | | clamp | 0 | Limit the transition to a smaller part of the screen | | scale | 1 | How much to scale the element | | blur | 0 | How much blur to add in pixels | | opacity | 100 | Minimum level of opacity. (0-100) | | sepia | 0 | Sepia level (0-1) | | offset | 0 | Moves the middle of the transition up or down | | deadzone | 0 | Treat a larger portion of the screen as centered | | opacityDeadzone | 0 | deadzone for only opacity (overridden by deadzone ) | | blurDeadzone | 0 | deadzone for only blur (overridden by deadzone ) | | transition | 0 | CSS transition time in seconds | | initial | false | Treat initial position as animation center | | transitionCenter | false | Coming soon... | | debug | false | Activates debug mode |

Caveats

  • A window re-size will break most effects. A page refresh is usually required to re-calculate the effect scroll positions.

Using in Vite Projects - Build Errors

If you run into problems using lax-parallax in a vite project (such as "...jsxDEV) is not a function..."), do the following:

  • Install @babel/plugin-transform-react-jsx
npm i -D @babel/plugin-transform-react-jsx
  • In your vite.config.js change
plugins: [
    react(),
    ...
  ],

to

plugins: [
    react({
      babel: {
        plugins: [
          ['@babel/plugin-transform-react-jsx', { runtime: 'automatic' }],
        ]
      },
    }),
    ...
  ],