how to avoid moving dom element
See original GitHub issueContact Details
No response
What do you need?
hey there
currently when initiating tsparticles, it’s duplicating/moving the dom element and appending to document
how I can prevent this behavior?
I need the dom element to stay on its place
tsParticles Version
2.5.3
Which library are you using?
Vanilla (tsparticles)
Code of Conduct
- I agree to follow this project’s Code of Conduct
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Prevent items from moving around in the DOM with CSS when ...
You can use absolute position : .first { position: absolute; top: 15px; left: 160px; } .second { position: absolute; left: 160px; } ...
Read more >Moving Elements and Adding New Ones with DOM Manipulation
If you haven't watched the first video in my series on basic DOM manipulation, you'll want to catch up with that first.
Read more >How do I move DOM elements with jQuery ? | Kevin Chisholm
The jQuery.appendTo method makes it easy to move a DOM element. You won't need to be concerned with creating or destroying elements and...
Read more >Manipulating documents - Learn web development | MDN
Moving and removing elements. There may be times when you want to move nodes, or delete them from the DOM altogether. This is...
Read more >Add elements to the DOM - Dart programming language
An Element object's parent is final and cannot be changed. So you cannot move an Element by changing its parent. Get an Element...
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

silly me. that’s working as expected now. thanks for helping guys!
Hey, I checked your code. Don’t add
<canvas>manually, the package will create it for you. Just define thedivelement like:<div id="particles-container"></div>. Related to your question,fullscreenshould befullScreenwith camelCase.