Occasionally "squished" particles
See original GitHub issueSo this isn’t really a bug, more of an “any ideas of how to resolve?” type of thing…
Very infrequently onload my particles are “squished”. I was wondering if anyone had any sort of tips to prevent this from ever happening? My assumption is it is because the image, on the left in the screen shots below, loads too slow occasionally. So when it loads in the height of the container changes all of a sudden and they get stretched.
Occasionally looks like this:

Should look like this:

How I am loading it:
const particles = document.querySelectorAll('.add-particles');
particles.forEach((el, i) => {
let particleDiv = document.createElement('div');
const id = `particles-${i}`;
particleDiv.classList.add('particles');
particleDiv.setAttribute('id', id);
el.insertBefore(particleDiv, el.firstChild);
/* ---- tsParticles.js config ---- */
tsParticles.load(id, {
// my configuration
});
})
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
What is annihilation? - Symmetry Magazine
In particle physics, “annihilation” is a transformation. ... A Play-Doh head being squished. Artwork by Sandbox Studio, Chicago ...
Read more >Icy Antimatter Experiment Surprises Physicists
An experiment conducted on hybrid matter-antimatter atoms has defied researchers' expectations.
Read more >States of matter - Science Learning Hub
We describe this matter as existing in states (sometimes referred to as phases). ... Particles in chemistry can be atoms, ions or molecules....
Read more >The Bizarre Liquid That Sometimes Acts Like a Solid - WIRED
When you apply pressure to oobleck, it works the opposite of the previous examples: The liquid becomes more viscous, not less. At the...
Read more >Kinetic Particle Theory | Other Quiz - Quizizz
The molecules move randomly. The molecules all move with the same speed.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks! Also, thanks for quick responses to issues, and branching and maintaining this plugin!
Oh, that’s nice! I know when I was using the old one i had issues removing all those things.
Ok, I’ll have a look on that, thanks.
EDIT: By default every enable is false, if you want you can remove all the section with
enable: false