Plays a particle burst when the element it wraps is clicked.
currentColorThe colour of the effect, as a CSS colour. |
colorFrom | "text"|"auto"|"background"|"border" | auto | Which colour of the clicked element to use when |
count | number | – | How many particles, ripples or shapes each click creates. Each effect has its own default. |
duration | number | – | How long the effect lasts, in milliseconds. Each effect has its own default. |
size | number | – | How large the effect is, in pixels: a particle's size, or a ripple's largest radius. Each effect has its own default. |
trigger | "click"|"mousedown" | mousedown | When the effect plays: as soon as the button is pressed ( |
variant | "ripple"|"matrix"|"spark"|"embers"|"quantum"|"tesseract"|"blackhole"|"firework"|"shatter"|"warp"|"smoke"|"supernova"|"holosphere"|"flowfield"|"synapse"|"diffusion"|"rain"|"binary"|"fission"|"bullettime" | spark | The effect that plays where the user clicks. |