Welcome to My Website
Content goes here with particle background
### Install particles.js with npm Source: https://github.com/vincentgarreau/particles.js/blob/master/README.md Use npm to install the particles.js library for your project. This is a common method for managing JavaScript dependencies. ```bash npm install particles.js ``` -------------------------------- ### Install particles.js with Bower Source: https://github.com/vincentgarreau/particles.js/blob/master/README.md Install particles.js using Bower, a package manager for the web. Ensure you save the dependency to your project's configuration. ```bash bower install particles.js --save ``` -------------------------------- ### Add particles.js package for Meteor Source: https://github.com/vincentgarreau/particles.js/blob/master/README.md Install the particles.js package for Meteor applications using the Meteor package manager. This command adds the package to your Meteor project. ```bash meteor add newswim:particles ``` -------------------------------- ### particlesJS Initialization Source: https://context7.com/vincentgarreau/particles.js/llms.txt Initializes the particle system on a specified DOM element with inline configuration. ```APIDOC ## particlesJS ### Description The main initialization function that creates a particle system on a specified DOM element. It accepts a target element ID and a configuration object defining particle appearance, behavior, and interactivity settings. ### Method JavaScript Function Call ### Endpoint N/A (Client-side JavaScript) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **elementId** (string) - Required - The ID of the DOM element where particles will be rendered. - **config** (object) - Required - An object containing the configuration for the particle system. ### Request Example ```html
``` ### Response #### Success Response (200) N/A (This is a client-side initialization function, it does not return a value in the traditional sense but modifies the DOM.) #### Response Example None ``` -------------------------------- ### Configure particle movement Source: https://github.com/vincentgarreau/particles.js/blob/master/README.md Enable particle movement and set its speed and direction. Options include 'none' or specific directions like 'top', 'right', etc. ```json "particles.move.enable": true ``` ```json "particles.move.speed": 4 ``` ```json "particles.move.direction": "none" ``` ```json "particles.move.direction": "top" ``` ```json "particles.move.direction": "top-right" ``` ```json "particles.move.direction": "right" ``` ```json "particles.move.direction": "bottom-right" ``` ```json "particles.move.direction": "bottom" ``` ```json "particles.move.direction": "bottom-left" ``` ```json "particles.move.direction": "left" ``` ```json "particles.move.direction": "top-left" ``` -------------------------------- ### Configure particle size animation Source: https://github.com/vincentgarreau/particles.js/blob/master/README.md Enable and configure animation for particle size, including speed and minimum size reached during animation. Sync option controls if all particles animate together. ```json "particles.size.anim.enable": true ``` ```json "particles.size.anim.speed": 3 ``` ```json "particles.size.anim.size_min": 0.25 ``` ```json "particles.size.anim.sync": true ``` -------------------------------- ### Configure particle opacity animation Source: https://github.com/vincentgarreau/particles.js/blob/master/README.md Enable and configure animation for particle opacity, including speed and minimum opacity reached during animation. Sync option controls if all particles animate together. ```json "particles.opacity.anim.enable": true ``` ```json "particles.opacity.anim.speed": 3 ``` ```json "particles.opacity.anim.opacity_min": 0.25 ``` ```json "particles.opacity.anim.sync": true ``` -------------------------------- ### Full HTML Integration with Particles.js Source: https://context7.com/vincentgarreau/particles.js/llms.txt This snippet shows a complete HTML file structure for integrating particles.js. It includes basic HTML, CSS for layout and styling, and JavaScript to initialize the particles and update their count. Ensure particles.min.js is in the same directory or adjust the script path. ```htmlContent goes here with particle background