Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### SSR compatible - Tested with <a href="https://nuxtjs.org/" target="_blank">Nuxt.js</a>

------------------------------
<a href="http://vue-particles.netlify.com/" target="_blank"><img src="https://cloud.githubusercontent.com/assets/3135968/25576433/9e63f3fe-2e67-11e7-9074-7bd9458ed691.png" alt="particles.js generator" /></a>
<a href="http://vue-particles.netlify.com/" target="_blank"><img src="https://cloud.githubusercontent.com/assets/3135968/25576433/9e63f3fe-2e67-11e7-9074-7bd9458ed691.png" alt="tsParticles generator" /></a>
## Demo and Usage
<a href="http://vue-particles.netlify.com/" target="_blank">http://vue-particles.netlify.com/</a>

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Vue-Particles - Vue.js and particles.js component</title>
<title>Vue-Particles - Vue.js and tsParticles component</title>
<meta name="description" content="Vue.js component for particles backgrounds">
<link href="https://fonts.googleapis.com/css?family=Teko:400,500" rel="stylesheet">
</head>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"vue-component",
"particles.js",
"particles",
"tsparticles",
"vue-particles"
],
"scripts": {
Expand All @@ -27,7 +28,7 @@
"main": "src/vue-particles/index.js",
"dependencies": {
"vue": "^2.2.6",
"particles.js": "^2.0.0"
"tsparticles": "^1.5.6"
},
"devDependencies": {
"autoprefixer": "^6.7.2",
Expand Down
238 changes: 125 additions & 113 deletions src/vue-particles/particles-data.js
Original file line number Diff line number Diff line change
@@ -1,123 +1,135 @@
const particlesData = {
"particles": {
"number": {
"value": 80,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
"value": "#9E9E9E"
},
"shape": {
"type": "circle",
"stroke": {
"width": 0,
"color": "#000000"
},
"polygon": {
"nb_sides": 5
},
"image": {
"src": "img/github.svg",
"width": 100,
"height": 100
}
},
"opacity": {
"value": 0.5,
"random": false,
"anim": {
"enable": false,
"speed": 1,
"opacity_min": 0.1,
"sync": false
}
},
"size": {
"value": 3,
"random": true,
"anim": {
"enable": false,
"speed": 40,
"size_min": 0.1,
"sync": false
}
},
"line_linked": {
"enable": true,
"distance": 150,
"color": "#ffffff",
"opacity": 0.4,
"width": 1
},

"move": {
"enable": true,
"speed": 2,
"direction": "none",
"random": false,
"straight": false,
"out_mode": "out",
"attract": {
"enable": false,
"rotateX": 600,
"rotateY": 1200
}
fps_limit: 60,
interactivity: {
detect_on: 'canvas',
events: {
onclick: {
enable: true,
mode: 'push'
},
onhover: {
enable: true,
mode: 'grab',
parallax: {
enable: false,
force: 2,
smooth: 10
}
},
resize: true
},
"interactivity": {
"detect_on": "canvas",
"events": {
"onhover": {
"enable": true,
"mode": "grab"
},
"onclick": {
"enable": true,
"mode": "push"
},
"resize": true
},
"modes": {
"grab": {
"distance": 100,
"line_linked": {
"opacity": 1
}
},
"bubble": {
"distance": 400,
"size": 40,
"duration": 2,
"opacity": 8,
"speed": 3
},
"repulse": {
"distance": 200
},
"push": {
"particles_nb": 4
},
"remove": {
"particles_nb": 2
}
modes: {
bubble: {
distance: 200,
duration: 0.4,
opacity: 1,
size: 80
},
grab: {
distance: 100,
line_linked: {
opacity: 1
}
},
push: {
particles_nb: 4
},
remove: {
particles_nb: 2
},
repulse: {
distance: 200,
duration: 0.4
}
}
},
particles: {
color: {
value: '#fff'
},

"retina_detect": true,
"config_demo": {
"hide_card": false,
"background_color": "#b61924",
"background_image": "",
"background_position": "50% 50%",
"background_repeat": "no-repeat",
"background_size": "cover"
line_linked: {
color: '#fff',
distance: 100,
enable: true,
opacity: 1,
width: 1
},
move: {
attract: {
enable: false,
rotateX: 3000,
rotateY: 3000
},
bounce: false,
direction: 'none',
enable: true,
out_mode: 'out',
random: false,
speed: 2,
straight: false
},
number: {
density: {
enable: true,
value_area: 800
},
value: 400
},
opacity: {
anim: {
enable: false,
opacity_min: 0,
speed: 2,
sync: false
},
random: false,
value: 1
},
shape: {
character: {
fill: false,
font: 'Verdana',
style: '',
value: '*',
weight: '400'
},
image: {
height: 100,
replace_color: true,
src: '',
width: 100
},
polygon: {
nb_sides: 5
},
stroke: {
color: '#ff0000',
width: 0
},
type: 'circle'
},
size: {
anim: {
enable: false,
size_min: 0,
speed: 20,
sync: false
},
random: false,
value: 20
}
},
retina_detect: false,
config_demo: {
hide_card: false,
background_color: '#b61924',
background_image: '',
background_position: '50% 50%',
background_repeat: 'no-repeat',
background_size: 'cover'
}
}


export {
particlesData
}
}
Loading