Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Particle data #484

Open
anthonycmain opened this issue Nov 26, 2021 · 4 comments
Open

Particle data #484

anthonycmain opened this issue Nov 26, 2021 · 4 comments

Comments

@anthonycmain
Copy link

Is there a way for me to use an array to inject data into the particles rather than random.

I want to essentially put a different icon in each and then have a hover event which will show the title.

@matteobruni
Copy link

You can see this sample here: https://codepen.io/matteobruni/pen/YzpOZpq

It uses tsParticles for creating particles manually

@anthonycmain
Copy link
Author

Whats the difference between this and tsParticles? Im a bit confused

@anthonycmain
Copy link
Author

Can I put in more than just the position, e.g. I want to ideally put in a stroked circle with a different icon in for each particle

@matteobruni
Copy link

Can I put in more than just the position, e.g. I want to ideally put in a stroked circle with a different icon in for each particle

Yes, you can see the properties here: https://particles.js.org/docs/classes/Options_Classes_ManualParticle.ManualParticle.html

You can specify position and options, the latest one contains the same object as the main particles object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants