tsParticles
Development library / tool · Free
A web particle engine for interactive backgrounds, confetti, and effects with configurable behavior, density, and cursor response.
Also known as: tsparticles/tsparticles

What you can use for free
tsParticles code is available free of charge for local and commercial projects, subject to its license.
Paid features and costs
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Access and limitations
tsParticles code is available free of charge for local and commercial projects, subject to its license. This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Use cases
- UI or SVG animation
- Smooth website content transitions
- Create an interactive particle background that responds to the cursor
- Configure confetti or another particle effect for an interface event
Example workflow
A possible workflow; this is not a report of hands-on testing.
UI or SVG animation with tsParticles.
Before you start
- A working JavaScript; Canvas project and a specific use case: UI or SVG animation.
- A design, interface states, or dataset; target screens and accessibility requirements.
Steps
- Check the project's stack and version against the current tsParticles documentation; add the package or the required source component.
- Implement the selected workflow with the supplied data, adapting styles and states to the project.
- Check the result in the target environment, remove sample data, and retain the notices required by the license.
Check your result
- The example works in the chosen tech stack, including target dimensions and input errors.
- Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met.
Choosing tsParticles
UI or SVG animation
Choose this when
- UI or SVG animation
- Smooth website content transitions
- Create an interactive particle background that responds to the cursor
Consider alternatives when
- When choosing for this topic, compare tsParticles with barba.js. A candidate to compare: both product pages list the use case “UI or SVG animation”. Implementation approach and compatibility are checked separately.
- When choosing for this topic, compare tsParticles with Moti. A candidate to compare: both product pages list the use case “UI or SVG animation”. Implementation approach and compatibility are checked separately.
Requirements
- Load the required bundle or plugin before tsParticles.load(). The basic example calls loadSlim(tsParticles) first.
Things to consider
- Costs and limits of free use: This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
- Terms of use: MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
- Feature options do not work without the corresponding plugin. The README warns about mixing old snake_case with new camelCase parameters and recommends checking FPS before increasing particle count.
Frequently asked questions
What can you use for free in tsParticles?
tsParticles code is available free of charge for local and commercial projects, subject to its license.
What additional costs might arise with tsParticles?
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
What terms of use matter for tsParticles?
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
How do you get started with tsParticles?
Check the project's stack and version against the current tsParticles documentation; add the package or the required source component. Implement the selected workflow with the supplied data, adapting styles and states to the project. Check the result in the target environment, remove sample data, and retain the notices required by the license.
How do engine, slim, and all differ in tsParticles?
Engine is the core; features require separate packages or a prebuilt bundle. The README recommends slim as a starting collection and all for the full collection; configuration is passed as an object or loaded from JSON.
Related tasks and approaches
- barba.js
A candidate to compare: both product pages list the use case “UI or SVG animation”. Implementation approach and compatibility are checked separately.
- Moti
A candidate to compare: both product pages list the use case “UI or SVG animation”. Implementation approach and compatibility are checked separately.
- Rough Notation
A candidate to compare: both product pages list the use case “UI or SVG animation”. Implementation approach and compatibility are checked separately.
License
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- JavaScript
- Canvas
- generative