2.12.0 • Published 1 year ago

tsparticles-interaction-light v2.12.0

Weekly downloads
15
License
MIT
Repository
github
Last release
1 year ago

banner

tsParticles Light Interaction

jsDelivr npmjs npmjs GitHub Sponsors

tsParticles interaction plugin for light effect.

How to use it

CDN / Vanilla JS / jQuery

The CDN/Vanilla version JS has one required file in vanilla configuration:

Including the tsparticles.interaction.light.min.js file will export the function to load the interaction plugin:

loadLightInteraction

Usage

Once the scripts are loaded you can set up tsParticles and the interaction plugin like this:

(async () => {
  await loadLightInteraction(tsParticles);

  await tsParticles.load({
    id: "tsparticles",
    options: {
      /* options */
    },
  });
})();

ESM / CommonJS

This package is compatible also with ES or CommonJS modules, firstly this needs to be installed, like this:

$ npm install tsparticles-interaction-light

or

$ yarn add tsparticles-interaction-light

Then you need to import it in the app, like this:

const { tsParticles } = require("tsparticles-engine");
const { loadLightInteraction } = require("tsparticles-interaction-light");

(async () => {
  await loadLightInteraction(tsParticles);
})();

or

import { tsParticles } from "tsparticles-engine";
import { loadLightInteraction } from "tsparticles-interaction-light";

(async () => {
  await loadLightInteraction(tsParticles);
})();
2.11.0

1 year ago

2.11.1

1 year ago

2.10.1

1 year ago

2.10.0

1 year ago

2.12.0

1 year ago

2.8.0

2 years ago

2.9.2

2 years ago

2.9.1

2 years ago

2.9.3

2 years ago

2.9.0

2 years ago

2.4.0

2 years ago

2.6.0

2 years ago

2.5.0

2 years ago

2.7.0

2 years ago

2.5.2

2 years ago

2.5.1

2 years ago

2.7.1

2 years ago

2.5.3

2 years ago

2.2.4

2 years ago

2.3.0

2 years ago

2.3.2

2 years ago

2.3.1

2 years ago

2.3.3

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.2.3

2 years ago

2.2.2

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.0

2 years ago

2.0.3

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.6

3 years ago

1.42.0

3 years ago

1.42.2

3 years ago

1.42.1

3 years ago

1.42.4

3 years ago

1.42.3

3 years ago

1.43.1

3 years ago

1.43.0

3 years ago

1.41.6

3 years ago

1.39.1

3 years ago

1.39.2

3 years ago

1.39.0

3 years ago

1.39.3

3 years ago

1.37.6

3 years ago

2.0.2

3 years ago

1.40.0

3 years ago

1.40.2

3 years ago

1.40.1

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.38.0

3 years ago

1.41.1

3 years ago

1.41.0

3 years ago

2.0.0-beta.5

3 years ago

1.41.3

3 years ago

2.0.0-beta.4

3 years ago

1.41.2

3 years ago

2.0.0-beta.3

3 years ago

1.41.5

3 years ago

1.41.4

3 years ago

1.37.4

3 years ago

1.37.5

3 years ago

1.37.0

3 years ago

1.37.3

3 years ago

1.37.1

3 years ago

1.37.2

3 years ago

1.36.0

3 years ago

1.35.4

3 years ago

2.0.0-beta.2

3 years ago

2.0.0-beta.1

3 years ago

2.0.0-beta.0

3 years ago

1.35.3

3 years ago

1.35.2

3 years ago

1.35.1

3 years ago

1.35.0

3 years ago

1.34.1

3 years ago

1.34.0

3 years ago

1.33.3

3 years ago

1.33.2

3 years ago

1.33.1

3 years ago

1.33.0

3 years ago

1.32.0

3 years ago

2.0.0-alpha.7

4 years ago

2.0.0-alpha.6

4 years ago

2.0.0-alpha.5

4 years ago

2.0.0-alpha.4

4 years ago

2.0.0-alpha.3

4 years ago

2.0.0-alpha.1

4 years ago

2.0.0-alpha.2

4 years ago

2.0.0-alpha.0

4 years ago