question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Occasionally "squished" particles

See original GitHub issue

So 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: image

Should look like this: image

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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
robhuskacommented, May 15, 2020

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.

0reactions
matteobrunicommented, May 15, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found