riot-particles

    1.7.2 • Public • Published

    banner

    riot-particles

    npm npm downloads

    Official tsParticles RiotJS component

    Installation

    npm install riot-particles riot

    or

    yarn add riot-particles riot

    Usage

    Usage

    <riot-particles id="tsparticles" options='{{
            background: {
                color: "#000"
            },
            fullScreen: {
                enable: true
            },
            particles: {
                links: {
                    enable: true
                },
                move: {
                    enable: true
                }
            }
        }}' particlesInit='{(main) => console.log(main)}' particlesLoaded='{(container) => console.log(container)}'/>
    
    <script>
        import RiotParticles from 'riot-particles';
    
        export default {
            components: {
                RiotParticles
            }
        }
    </script>
    
    <!-- or -->
    
    <riot-particles
            id="tsparticles"
            url="https://foo.bar/particles.json"
            particlesInit='{(main) => console.log(main)}' particlesLoaded='{(container) => console.log(container)}'/>
    />

    Demos

    The demo website is here

    https://particles.js.org

    There's also a CodePen collection actively maintained and updated here

    https://codepen.io/collection/DPOage

    Install

    npm i riot-particles

    DownloadsWeekly Downloads

    120

    Version

    1.7.2

    License

    MIT

    Unpacked Size

    8.67 kB

    Total Files

    8

    Last publish

    Collaborators

    • avatar