Skip to content

Commit

Permalink
Amogus is now clickable!
Browse files Browse the repository at this point in the history
  • Loading branch information
Crimento committed Apr 8, 2024
1 parent 60456fe commit 8f5b028
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions components/ParticlesBackground.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ import { loadBasic } from "@tsparticles/basic";
import { loadImageShape } from "@tsparticles/shape-image";
import { loadRotateUpdater } from "@tsparticles/updater-rotate";
import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
import { loadExternalRepulseInteraction } from "@tsparticles/interaction-external-repulse";
if (import.meta.client) {
await loadBasic(tsParticles);
await loadImageShape(tsParticles);
await loadRotateUpdater(tsParticles);
await loadEmittersPlugin(tsParticles);
await loadExternalRepulseInteraction(tsParticles);
}
const isLoading = ref({});
Expand Down Expand Up @@ -92,6 +94,15 @@ const options = {
},
position: { x: -5, y: 55 },
},
interactivity: {
detectsOn: "window",
events: {
onClick: {
enable: true,
mode: "repulse",
},
},
},
};
const onLoad = (container: Container) => {
Expand Down

0 comments on commit 8f5b028

Please sign in to comment.