Événements d'interactivité
interactivity.events contrôle le moment où les modes d'interaction sont déclenchés.
Exemple
ts
interactivity: {
events: {
onHover: {
enable: true,
mode: ["grab", "bubble"],
},
onClick: {
enable: true,
mode: ["push", "repulse"],
},
resize: true,
},
}onHover: comportement de survol du pointeur.onClick: comportement de clic/appui.resize: maintient le comportement cohérent après les modifications de la fenêtre d'affichage.
Référence source
- https://github.com/tsparticles/tsparticles/blob/main/markdown/Options/Interactivity/Events.md
- https://github.com/tsparticles/tsparticles/blob/main/markdown/Options/Interactivity/Click.md
- https://github.com/tsparticles/tsparticles/blob/main/markdown/Options/Interactivity/Hover.md
- https://github.com/tsparticles/tsparticles/blob/main/markdown/Options/Interactivity/Div.md
