Skip to content

预设目录

这些是主 tsParticles 自述文件中列出的官方预设,可在预设工作区中找到。

源文件夹:https://github.com/tsparticles/tsparticles/tree/main/presets

预设

每个预设文件夹还包含 monorepo 中的文档,例如:

快速使用

ts
await tsParticles.load({
  id: "tsparticles",
  options: {
    preset: "links",
    fullScreen: {
      enable: false,
    },
  },
});

对于生产设置,请使用手动启动/停止/恢复/销毁,如 /demos/ 下的配方中所示。

使用 /playground/presets 通过显式开始/暂停控件测试每个预设。