Sparticles in absolute positione div
Air-Sidney opened this issue · 1 comments
Air-Sidney commented
How I understand Sparticles can calculate width and height of target div has absolute position. I can setup width in pixels but I need widht 100%, height 100%
simeydotme commented
https://github.com/simeydotme/sparticles#styling
.sparticles-container {
position: fixed; /* or absolute */
left: 0; right: 0;
top: 0; bottom: 0;
/**
* z-index: -1; this makes the <body> still interactive
* by placing the sparticles behind the content
*/
z-index: -1;
}