Resizing the Particles container so it only takes up size of Hero #2591
-
I know this has been discussed at least once prior. I am using NextJS and Tailwindcss. My goal is to place the Particles component on the right side of a hero only. No mater what I do the Particles take up the entire body. I have tried many of the solutions posted here and on stack overflow with no change. InterestingIy I was able to do this with the deprecated version 'react-particles-js 'easily but I wanted to use the most up to date version of this project. Any help would be tremendously appreciated! Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Hi @AlexMNet, Starting from
After that is just a normal |
Beta Was this translation helpful? Give feedback.
-
When I add fullScreen: { enable: false }, it causes a strange behavior. All of the content in my component in which I've used Particles just moves off the screen until they disappear. |
Beta Was this translation helpful? Give feedback.
Hi @AlexMNet,
Starting from
1.37.0
the default behavior was changed to full screen particles since it was the more common configuration. You can disable that in the options adding this:After that is just a normal
div
tag that you can place anywhere you want