Basic Usage

To use the library, you need to install the module using npm:

npm install mz-particles

Or using Yarn:

yarn add mz-particles

Then you can import any function as follows:

import { particles } from 'mz-particles';

particles({
    $placeholder: document.getElementById('placeholder'),
    canvasColor: 'rgb(17, 24, 39)',
    particlesNumber: 100,
});

You can also use it without bundlers. Download the latest mz-particles.min.js script from GitHub and add it to the page as follows:

<script src="mz-particles.min.js"></script>
<script>
    window.particles({
        $placeholder: document.getElementById('placeholder'),
        canvasColor: 'rgb(17, 24, 39)',
        particlesNumber: 100,
    });
</script>
Next
Circles