Socket
Socket
Sign inDemoInstall

@tsparticles/vue2

Package Overview
Dependencies
26
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @tsparticles/vue2

Official tsParticles Vue.js 2.x Component - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for Web Components, React, Vue.js 3.x,


Version published
Weekly downloads
57K
decreased by-84.19%
Maintainers
2
Install size
1.92 MB
Created
Weekly downloads
 

Changelog

Source

3.0.0 (2023-12-22)

Bug Fixes

  • deps: bump actions/cache from 2.1.4 to 3.0.2 (3fb65d4)
  • deps: bump actions/cache from 3.0.10 to 3.0.11 (c1fa634)
  • deps: bump actions/cache from 3.0.11 to 3.2.0 (79678df)
  • deps: bump actions/cache from 3.0.2 to 3.0.3 (897ae93)
  • deps: bump actions/cache from 3.0.3 to 3.0.4 (d38b793)
  • deps: bump actions/cache from 3.0.4 to 3.0.5 (e129732)
  • deps: bump actions/cache from 3.0.5 to 3.0.6 (173fd22)
  • deps: bump actions/cache from 3.0.6 to 3.0.7 (6f486d3)
  • deps: bump actions/cache from 3.0.7 to 3.0.8 (ad5fd2f)
  • deps: bump actions/cache from 3.0.8 to 3.0.9 (7b8a794)
  • deps: bump actions/cache from 3.0.9 to 3.0.10 (6b267d3)
  • deps: bump actions/cache from 3.2.0 to 3.2.1 (7f17cca)
  • deps: bump actions/cache from 3.2.1 to 3.2.2 (1a6a6c0)
  • deps: bump actions/setup-node from 2.1.5 to 3.2.0 (53d15fb)
  • deps: bump actions/setup-node from 3.2.0 to 3.3.0 (0dd5c83)
  • deps: bump actions/setup-node from 3.3.0 to 3.4.0 (a5fdbb3)
  • deps: bump actions/setup-node from 3.4.0 to 3.4.1 (88bf7f6)
  • deps: bump actions/setup-node from 3.4.1 to 3.5.0 (cff624d)
  • deps: bump actions/setup-node from 3.5.0 to 3.5.1 (28d3cb3)
  • deps: bump core-js from 3.22.5 to 3.22.6 (0564d90)
  • deps: bump core-js from 3.22.6 to 3.22.7 (6e2e8b7)
  • deps: bump core-js from 3.22.7 to 3.22.8 (ef22f1f)
  • deps: bump core-js from 3.22.8 to 3.23.0 (cfc8a04)
  • deps: bump core-js from 3.23.0 to 3.23.1 (d1e9b9e)
  • deps: bump core-js from 3.23.1 to 3.23.2 (94102a5)
  • deps: bump core-js from 3.23.2 to 3.23.3 (bb577b8)
  • deps: bump core-js from 3.23.3 to 3.23.4 (e7d1030)
  • deps: bump core-js from 3.23.4 to 3.23.5 (3179449)
  • deps: bump core-js from 3.23.5 to 3.24.0 (d778669)
  • deps: bump core-js from 3.24.0 to 3.24.1 (812a1ad)
  • deps: bump core-js from 3.24.1 to 3.25.0 (9edaafa)
  • deps: bump core-js from 3.25.0 to 3.25.1 (99c60fa)
  • deps: bump core-js from 3.25.1 to 3.25.2 (9c8189f)
  • deps: bump core-js from 3.25.2 to 3.25.3 (21fa47b)
  • deps: bump core-js from 3.25.3 to 3.25.4 (359145b)
  • deps: bump core-js from 3.25.4 to 3.25.5 (e51b3b9)
  • deps: bump core-js from 3.25.5 to 3.26.0 (25f5910)
  • deps: bump core-js from 3.26.0 to 3.26.1 (ff5c20d)
  • deps: bump core-js from 3.26.1 to 3.27.0 (b520304)
  • deps: bump particles.vue from 3.0.6 to 3.1.0 (6fbbffd)
  • deps: bump particles.vue from 3.1.0 to 3.1.3 (80a7633)
  • deps: bump particles.vue from 3.1.3 to 3.1.4 (f5a9efd)
  • deps: bump particles.vue from 3.1.4 to 3.2.0 (1e7f29c)
  • deps: bump particles.vue from 3.2.0 to 3.2.1 (b29654b)
  • deps: bump particles.vue from 3.2.1 to 3.2.2 (f562dbc)
  • deps: bump particles.vue from 3.2.2 to 3.2.3 (20738b0)
  • deps: bump particles.vue from 3.2.3 to 3.2.4 (b5c4175)
  • deps: bump particles.vue from 3.2.4 to 3.3.1 (9b1280c)
  • deps: bump particles.vue from 3.3.1 to 3.3.2 (096bbd0)
  • deps: bump particles.vue from 3.3.2 to 3.3.3 (211ea9f)
  • deps: bump particles.vue from 3.3.3 to 3.5.3 (222b8cb)
  • deps: bump tsparticles from 2.0.6 to 2.1.0 (692f85c)
  • deps: bump tsparticles from 2.1.0 to 2.1.3 (0af0da4)
  • deps: bump tsparticles from 2.1.3 to 2.1.4 (a9b4b0a)
  • deps: bump tsparticles from 2.1.4 to 2.2.0 (19cd8a8)
  • deps: bump tsparticles from 2.2.0 to 2.2.1 (25d24d8)
  • deps: bump tsparticles from 2.2.1 to 2.2.2 (cf7a242)
  • deps: bump tsparticles from 2.2.2 to 2.2.3 (f331367)
  • deps: bump tsparticles from 2.2.3 to 2.2.4 (58612c3)
  • deps: bump tsparticles from 2.2.4 to 2.3.0 (020211f)
  • deps: bump tsparticles from 2.3.0 to 2.3.1 (ae55e27)
  • deps: bump tsparticles from 2.3.1 to 2.3.2 (050e22e)
  • deps: bump tsparticles from 2.3.2 to 2.3.4 (e6fab09)
  • deps: bump tsparticles from 2.3.4 to 2.4.0 (c61abf1)
  • deps: bump tsparticles from 2.4.0 to 2.5.1 (54df3f7)
  • deps: bump tsparticles from 2.5.1 to 2.5.3 (eabe3d5)
  • deps: bump vue and vue-template-compiler (1b8636f)
  • deps: bump vue and vue-template-compiler (a419536)
  • deps: bump vue and vue-template-compiler (8cc402a)
  • deps: bump vue and vue-template-compiler (85b6cbc)
  • deps: bump vue and vue-template-compiler (058473e)
  • deps: bump vue-server-renderer from 2.6.14 to 2.7.0 (cd215da)
  • deps: bump vue-server-renderer from 2.7.0 to 2.7.2 (76a28b7)
  • deps: bump vue-server-renderer from 2.7.10 to 2.7.12 (0a17349)
  • deps: bump vue-server-renderer from 2.7.12 to 2.7.13 (c2b0e29)
  • deps: bump vue-server-renderer from 2.7.13 to 2.7.14 (58f7c1a)
  • deps: bump vue-server-renderer from 2.7.2 to 2.7.3 (40a824c)
  • deps: bump vue-server-renderer from 2.7.3 to 2.7.4 (7df2736)
  • deps: bump vue-server-renderer from 2.7.4 to 2.7.5 (ebec567)
  • deps: bump vue-server-renderer from 2.7.5 to 2.7.7 (5a08a70)
  • deps: bump vue-server-renderer from 2.7.7 to 2.7.8 (6976e98)
  • deps: bump vue-server-renderer from 2.7.8 to 2.7.9 (febcb9a)
  • deps: bump vue-server-renderer from 2.7.9 to 2.7.10 (8df98de)
  • deps: bump webpack from 4.46.0 to 5.72.1 (eb21e86)
  • deps: bump webpack from 5.72.1 to 5.73.0 (e39f034)
  • deps: bump webpack from 5.73.0 to 5.74.0 (8755771)
  • deps: bump webpack from 5.74.0 to 5.75.0 (992668c)

Features

Readme

Source

banner

@tsparticles/vue2

npm npm GitHub Sponsors

Official tsParticles VueJS component

Slack Discord Telegram

tsParticles Product Hunt

Installation

yarn add @tsparticles/vue2

Usage

import Particles from "@tsparticles/vue2";
//import { loadFull } from "tsparticles"; // if you are going to use `loadFull`, install the "tsparticles" package too.
import { loadSlim } from "@tsparticles/slim"; // if you are going to use `loadSlim`, install the "@tsparticles/slim" package too.

Vue.use(Particles, {
    init: async engine => {
        // await loadFull(engine);
        await loadSlim(engine);
    },
});

Demo config

<template>
    <div id="app">
        <vue-particles id="tsparticles" :particlesLoaded="particlesLoaded" url="http://foo.bar/particles.json" />

        <!-- or -->

        <vue-particles
            id="tsparticles"
            :particlesLoaded="particlesLoaded"
            :options="{
                    background: {
                        color: {
                            value: '#0d47a1'
                        }
                    },
                    fpsLimit: 120,
                    interactivity: {
                        events: {
                            onClick: {
                                enable: true,
                                mode: 'push'
                            },
                            onHover: {
                                enable: true,
                                mode: 'repulse'
                            },
                            resize: true
                        },
                        modes: {
                            bubble: {
                                distance: 400,
                                duration: 2,
                                opacity: 0.8,
                                size: 40
                            },
                            push: {
                                quantity: 4
                            },
                            repulse: {
                                distance: 200,
                                duration: 0.4
                            }
                        }
                    },
                    particles: {
                        color: {
                            value: '#ffffff'
                        },
                        links: {
                            color: '#ffffff',
                            distance: 150,
                            enable: true,
                            opacity: 0.5,
                            width: 1
                        },
                        move: {
                            direction: 'none',
                            enable: true,
                            outMode: 'bounce',
                            random: false,
                            speed: 6,
                            straight: false
                        },
                        number: {
                            density: {
                                enable: true,
                                area: 800
                            },
                            value: 80
                        },
                        opacity: {
                            value: 0.5
                        },
                        shape: {
                            type: 'circle'
                        },
                        size: {
                            value: { min: 1, max: 5 },
                        }
                    },
                    detectRetina: true
                }"
        />
    </div>
</template>
const particlesLoaded = async container => {
    console.log("Particles container loaded", container);
};

TypeScript errors

If TypeScript returns error while importing/using Particles plugin try adding the following import before the previous code:

declare module "@tsparticles/vue2";

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

Keywords

FAQs

Last updated on 22 Dec 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc