Skip to content

Conversation

xkisu
Copy link

@xkisu xkisu commented Jan 12, 2018

For a client project the client wanted 2 instances of particles on either side of a page with different colors. I realized that this was not possible with the way vue-particles was currently configured.

To make it possible I made it so that the ID for the root element is a reactive Vue data property with a randomly generated number at the end. This way there can be several instances on the page without them clashing.

@creotip creotip merged commit fefae8b into creotip:master Jan 14, 2018
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

Successfully merging this pull request may close these issues.

2 participants