wufe / react-particles-js

Particles.js for React
https://rpj.bembi.dev/
MIT License
1.15k stars 106 forks source link

does the params shape follow the particle.js params shape #98

Closed petervijeh closed 4 years ago

petervijeh commented 5 years ago

doesn't appear to respond at all to these inputs.

                "move": {
                  "enable": true,
                  "speed": 12,
                  "direction": "top",
                  "random": false,
                  "straight": false,
                }
                "particles": {
                  "number": {
                    "value": 80
                  },
                  "size": {
                    "value": 50,
                    "random": true,
                  }
                },
                "interactivity": {
                  "events": {
                    "onhover": {
                      "enable": true,
                      "mode": "repulse"
                    }
                  }
                },
petervijeh commented 5 years ago

id recommend making the params API follow what particle.js uses, this seems pretty useless :(

wufe commented 5 years ago

They do follow the particles.js interface. Here you can find the detailed shape of the params object and here you can create it interactively. The snippet you sent is missing a comma after the move object and it should be placed under particles object.