DEV Community

loading...
Cover image for tsParticles 1.23.0 released

tsParticles 1.23.0 released

matteobruni profile image Matteo Bruni ・2 min read

tsParticles 1.23.0

I didn't wrote a post since 1.18.11 so I will include all changes since that version (including the right version with the change)

Release Notes

New Features

  • Renamed backgroundMode to fullScreen in options, non breaking since the old property is still supported. (1.19.0)
  • By default motion is reduced when css motion reduction is enabled (1.19.3)
  • Emitters and absorbers now can have a name in options (1.19.4)
  • Responsive options (1.20.0)
  • Resize keeps particles in place (1.20.0)
  • Added overlap options to collisions (1.20.0)
  • Added move speed decay option (1.21.0)
  • Added external confetti shape, closes #605 (1.21.0)
  • Added emitters spawn color (1.21.0)
  • Added animation loop count for opacity and size options (1.21.0)
  • Added noise/path generator in plugins management (1.22.0)
  • Added Vector class, this is now used in particle velocity and position

Bug Fixes

  • Emitters uses the main loop, so they pause/play with the same particles logic (1.20.1)
  • Fixed size and opacity animations (broken between 1.19.0 and 1.22.0, restored in 1.22.1)
  • Options now can accept any additional property, double check the names; it's not any, it uses the indexer.

Breaking Changes

Starting from 1.23.0 the new Vector class is used in particle speed and position, this will change how the speed works, it was a bug made in particles.js and not fixed.

The particle speed has now length and angle property so it's calculated correctly with the right values instead of the old bad values.

Old speed values will result in rectangular emitters, this new calculation method will result in circular emitters and more linear speed.


Confetti shape

I made an article some days ago about this new shape

CodePen demos

You can find all the demos on CodePen here


Related projects

jQuery

If you want to use tsParticles with jQuery checkout this repository

VueJS

If you want to use tsParticles with VueJS checkout this repository

ReactJS

If you want to use tsParticles with ReactJS checkout this repository

3rd Party

A 3rd-party component is available too, read more here

Preact

If you want to use tsParticles with Preact checkout this repository

Angular CLI

If you want to use tsParticles with Angular CLI (actually v9) checkout this repository


Useful links

Checkout the demos here: https://particles.matteobruni.it

Do you want to replace the old, outdated and abandoned particles.js?

You're in the right place!


GitHub repo

https://github.com/matteobruni/tsparticles

GitHub logo matteobruni / tsparticles

tsParticles - Easily create highly customizable particles animations and use them as animated backgrounds for your website. Ready to use components available for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno.

banner

tsParticles - TypeScript Particles

A lightweight TypeScript library for creating particles. Dependency free (*) and browser ready!

Particles.js converted in TypeScript, dependency free (*), improved with new cool 😎 features and various bugs fixed and it's actively maintained!

jsDelivr Cdnjs npmjs npm lerna CodeFactor Codacy Badge Gitpod Ready-to-Code Run on Repl.it

Do you want to use it on your website?

This library is available on the two most popular CDNs and it's easy and ready to use, if you were using particles.js it's even easier.

You'll find the instructions below, with all the links you need, and don't be scared by TypeScript, it's just the source language.

The output files are just JavaScript. 🀩

CDNs and npm have all the sources you need in Javascript, a bundle browser ready (tsparticles.min.js) and all files splitted for import syntax.

If you are still interested some lines below there are some instructions for migrating from…

If you like this project support it with a star 🌟

npm

https://www.npmjs.com/package/tsparticles

yarn

https://yarnpkg.com/package/tsparticles

jsDelivr

https://www.jsdelivr.com/package/npm/tsparticles

CDNJS

https://cdnjs.com/libraries/tsparticles


Feel free to contribute to the project!

Discussion (0)

Forem Open with the Forem app