
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@ar-dacity/ardacity-splash-cursor
Advanced tools
Interactive fluid simulation cursor effects for React applications
A React component that creates beautiful fluid simulation cursor effects that follow the user's pointer movements, creating a splash-like visual effect. Based on WebGL shaders for high-performance animations.
npm install @ar-dacity/ardacity-splash-cursor
or
yarn add @ar-dacity/ardacity-splash-cursor
When you install this package, it automatically:
After installation, you can import the component directly from your components directory:
import SplashCursor from './components/SplashCursor';
function App() {
return (
<div>
<h1>My Awesome Website</h1>
{/* Add the SplashCursor component to enable the effect */}
<SplashCursor />
</div>
);
}
Property | Type | Default | Description |
---|---|---|---|
SIM_RESOLUTION | number | 128 | Simulation resolution for the fluid dynamics. Higher values increase quality but reduce performance. |
DYE_RESOLUTION | number | 1440 | Resolution of the color/dye field. Higher values create more detailed color effects. |
DENSITY_DISSIPATION | number | 3.5 | How quickly the color dissipates. Lower values make colors last longer. |
VELOCITY_DISSIPATION | number | 2 | How quickly the motion dissipates. Lower values create longer-lasting movement. |
PRESSURE | number | 0.1 | Fluid pressure parameter that affects how the simulation behaves. |
PRESSURE_ITERATIONS | number | 20 | More iterations create more accurate fluid simulation at the cost of performance. |
CURL | number | 3 | Controls the amount of vorticity/swirl in the fluid. |
SPLAT_RADIUS | number | 0.2 | Size of the splash effect when cursor moves. |
SPLAT_FORCE | number | 6000 | Strength of the force applied to the fluid when cursor moves. |
SHADING | boolean | true | Enables 3D-like shading effect on the fluid. |
COLOR_UPDATE_SPEED | number | 10 | How quickly the colors change. |
BACK_COLOR | object | { r: 0.5, g: 0, b: 0 } | The background/base color for the fluid effect (RGB values between 0-1). |
TRANSPARENT | boolean | true | Whether the background should be transparent. |
You can customize the fluid simulation by adjusting the props:
<SplashCursor
SPLAT_RADIUS={0.3}
SPLAT_FORCE={8000}
CURL={5}
BACK_COLOR={{ r: 0, g: 0.3, b: 0.5 }}
/>
For optimal performance:
The SplashCursor component is compatible with all modern browsers that support WebGL.
MIT
FAQs
Interactive fluid simulation cursor effects for React applications
We found that @ar-dacity/ardacity-splash-cursor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.