nuxt-particles icon indicating copy to clipboard operation
nuxt-particles copied to clipboard

Load a tsParticles Preset

Open JoniLieh opened this issue 1 year ago • 2 comments

Hey there, thanks for your package! How would I load a preset like: @tsparticles/preset-hyperspace

Maybe like this idk:

import { loadFireflyPreset } from "@tsparticles/preset-hyperspace"
import type { Container, Engine } from 'tsparticles-engine'

const onLoad = async (container: Container, engine: Engine) => {
  await loadHyperSpacePreset(engine);
}

JoniLieh avatar Mar 01 '24 21:03 JoniLieh

Just adding the options from the presets is temporary workaround :)

JoniLieh avatar Mar 03 '24 16:03 JoniLieh

Could you give an example of how to do this?

humbertleonardo avatar Dec 26 '24 23:12 humbertleonardo