Skip to content

Commit e8ff83a

Browse files
committed
Add mouse trail
1 parent 5308b0f commit e8ff83a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

examples/nextjs/src/app/layout.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ export default function RootLayout({ children }: { children: React.ReactNode }):
2323
<Particles
2424
fullScreenOverlay
2525
options={{
26-
speedRange: [200, 250],
27-
maxParticles: 10000,
28-
generationRate: 0.2,
29-
angleRage: [Math.PI / 4, (3 * Math.PI) / 4],
30-
forceField: [0, -0.02],
31-
ageRange: [0.2, 0.5],
26+
rgba: [0, 1, 0, 0.5],
27+
maxParticles: 1000,
28+
generationRate: 0.25,
29+
angleRage: [-2 * Math.PI, 2 * Math.PI],
30+
origin: [-1, -1],
31+
speedRange: [0.01, 0.1],
32+
ageRange: [0.01, 0.5],
33+
forceField: [0, 0],
3234
}}
3335
/>
34-
<Particles style={{ height: "500px", width: "600px" }} />
3536
</body>
3637
</html>
3738
);

0 commit comments

Comments
 (0)