@tsparticles/demo-configs
Version:
tsParticles demo configurations
134 lines (133 loc) • 3.08 kB
JSON
{
"name": "SVG Replace",
"interactivity": {
"events": {
"onClick": {
"enable": true,
"mode": "push"
},
"onDiv": {
"elementId": "repulse-div",
"enable": false,
"mode": "repulse"
},
"onHover": {
"enable": true,
"mode": "bubble",
"parallax": {
"enable": false,
"force": 60,
"smooth": 10
}
}
},
"modes": {
"bubble": {
"distance": 400,
"duration": 2,
"opacity": 0.8,
"size": 40
},
"connect": {
"distance": 80,
"links": {
"opacity": 0.5
},
"radius": 60
},
"grab": {
"distance": 400,
"links": {
"opacity": 1
}
},
"push": {
"quantity": 4
},
"remove": {
"quantity": 2
},
"repulse": {
"distance": 200,
"duration": 0.4
}
}
},
"particles": {
"color": {
"value": "#00f"
},
"links": {
"blink": false,
"color": "#000",
"consent": false,
"distance": 150,
"enable": false,
"opacity": 0.4,
"width": 1
},
"move": {
"enable": true,
"speed": 2
},
"number": {
"density": {
"enable": true
},
"limit": 0,
"value": 80
},
"opacity": {
"value": {
"min": 0.1,
"max": 1
}
},
"rotate": {
"animation": {
"enable": true,
"speed": 5,
"sync": false
},
"direction": "random",
"value": {
"min": 0,
"max": 360
}
},
"shape": {
"options": {
"image": {
"src": "/images/canine.svg",
"width": 32,
"height": 32,
"replaceColor": true
}
},
"type": "image"
},
"size": {
"value": 16
}
},
"polygon": {
"draw": {
"enable": false,
"lineColor": "#ffffff",
"lineWidth": 0.5
},
"move": {
"radius": 10
},
"scale": 1,
"type": "none",
"url": ""
},
"background": {
"color": "#fff",
"image": "",
"position": "50% 50%",
"repeat": "no-repeat",
"size": "cover"
}
}