Skip to content

Commit

Permalink
Reduce amount of particles
Browse files Browse the repository at this point in the history
  • Loading branch information
Crimento committed Mar 28, 2024
1 parent 7009864 commit ae234ae
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions components/ParticlesBackground.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<NuxtParticles id="tsparticles" :options="options" class="-z-10 absolute" />
<NuxtParticles id="tsparticles" :options="options" class="absolute -z-10" />
</template>

<script setup lang="ts">
Expand All @@ -15,10 +15,10 @@ const options = {
particles: {
color: { value: "#fff" },
groups: {
veryclose: { number: { value: 50 }, zIndex: { value: 75 } },
close: { number: { value: 50 }, zIndex: { value: 50 } },
far: { number: { value: 50 }, zIndex: { value: 25 } },
veryfar: { number: { value: 50 }, zIndex: { value: 10 } },
veryclose: { number: { value: 15 }, zIndex: { value: 75 } },
close: { number: { value: 25 }, zIndex: { value: 50 } },
far: { number: { value: 20 }, zIndex: { value: 25 } },
veryfar: { number: { value: 20 }, zIndex: { value: 10 } },
},
move: {
enable: true,
Expand All @@ -35,7 +35,7 @@ const options = {
},
number: {
limit: { mode: "delete", value: 0 },
value: 175,
value: 100,
},
shape: { close: true, fill: true, options: {}, type: "circle" },
size: {
Expand Down Expand Up @@ -78,5 +78,6 @@ const options = {
},
},
},
fpsLimit: 60,
};
</script>

0 comments on commit ae234ae

Please sign in to comment.