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

dissolve-react

v1.0.0

Published

A WebGL-powered dissolve animation component for React

Readme

dissolve-react

A WebGL-powered dissolve animation component for React. Wraps any element and dissolves it with a Perlin noise-based particle effect.

Demo | GitHub | npm

Install

npm install dissolve-react
# or
yarn add dissolve-react
# or
pnpm add dissolve-react
# or
bun add dissolve-react

Usage

import { useRef } from "react";
import { Dissolve, type DissolveHandle } from "dissolve-react";

function App() {
  const ref = useRef<DissolveHandle>(null);

  return (
    <>
      <Dissolve ref={ref} onComplete={() => console.log("done!")}>
        <div>This will dissolve</div>
      </Dissolve>
      <button onClick={() => ref.current?.dissolve()}>Dissolve</button>
      <button onClick={() => ref.current?.reset()}>Reset</button>
    </>
  );
}

Props

| Prop | Type | Description | |------|------|-------------| | children | ReactNode | Content to wrap | | onComplete | () => void | Called when the dissolve animation finishes | | settings | Partial<DissolveSettings> | Override default animation settings | | className | string | Class name for the wrapper div | | style | CSSProperties | Inline styles for the wrapper div |

Ref Handle (DissolveHandle)

| Method / Property | Type | Description | |-------------------|------|-------------| | dissolve() | () => void | Start the dissolve animation | | reset() | () => void | Reset to original state | | isAnimating | boolean | Whether animation is in progress | | isVisible | boolean | Whether the content is visible |

Settings

Pass a partial DissolveSettings object to customize the animation:

<Dissolve settings={{ duration: 2000, maxDisplacement: 5.0 }}>
  <div>Custom dissolve</div>
</Dissolve>

| Setting | Default | Description | |---------|---------|-------------| | duration | 1150 | Animation duration in ms | | maxDisplacement | 3.2 | How far pixels scatter (UV space) | | bigNoiseFreq | 0.004 | Scale of turbulence patterns | | bigNoiseSlope | 5.0 | Contrast of big noise | | bigNoiseIntercept | -2.0 | Component transfer intercept | | fineNoiseFreq | 2.7 | Detail grain frequency | | noiseMix | 0.55 | 0 = only big noise, 1 = only fine noise | | opacityFadeStart | 0.1 | Progress [0..1] at which opacity starts fading | | easingPower | 2.0 | Easing exponent (1 = linear) | | endScale | 1.05 | Scale at end (1.0 = no scale) |

Peer Dependencies

  • react >= 17
  • react-dom >= 17

License

MIT