
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
react-mouse-trails
Advanced tools
A lightweight WebGL-based React component for creating a mouse trail effect.
A lightweight WebGL-based React component for creating an interactive mouse trail effect. Works with Next.js out of the box.
ā Fully TypeScript
ā Leverages the power of React 18 Server components
ā Compatible with all React build systems/tools/frameworks
ā Documented with Typedoc (Docs)
ā Examples for Next.js, Vite
Please consider starring this repository and sharing it with your friends.
$ pnpm add react-webgl-trails
or
$ npm install react-webgl-trails
or
$ yarn add react-webgl-trails
MouseTrail is simple to integrate:
import { MouseTrail } from "react-mouse-trail";
export default function Layout() {
return (
<html lang="en" suppressHydrationWarning>
<body className={inter.className}>
{/* ... */}
<MouseTrail rgb={[1, 0, 0]} />
</body>
</html>
);
}
By default, the RGB value [1, 0, 0]
represents the color red.
This library is licensed under the MPL-2.0 open-source license.
Please consider enrolling in our courses or sponsoring our work.
with š by Mayank Kumar Chaudhari
FAQs
A lightweight WebGL-based React component for creating a mouse trail effect.
We found that react-mouse-trails demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 0 open source maintainers 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.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.