Ripple color.
#ffffff42
Lag before the ripple moves.
0
Ripple display animation duration in seconds.
0.4
Whether the ripple should grow when the target is clicked.
true
Target element size multiplier to determine ripple expanded size (when expandOnClick: true
). Rela
2
Whether the ripple should fade out when the target is clicked.
true
If the ripple should be a gradient.
false
Function to generates the gradient spotlight
(size, x, y, deltaX, deltaY, color) => {
return `radial-gradient(${size} at calc(${x} + ${deltaX}) calc(${y} + ${deltaY}), ${color}, transparent)`;
}
Selector for which the ripple won't be applied.
.disabled, [disabled]
Initial horizontal relative position, expressed in percent.
50%
Initial vertical relative position, expressed in percent.
50%
Event that triggers the ripple.
click
Prefix to css vars.
ripple
Rembmer the ripple position on disable in case of ulterior reenable.
false
Function to generates the sharp spotlight
(size, x, y, deltaX, deltaY, color) => {
return `radial-gradient(${size} at calc(${x} + ${deltaX}) calc(${y} + ${deltaY}), ${color} 0%, ${color} 100%, transparent)`;
}
Ripple size.
0
Target selector. e.g.
target : '.ripple-text';
.ripple
Whether the ripple should apply as a text clip.
false
Ripple display animation duration in seconds.
0.1
Whether the ripple should follow the cursor.
true
Cursor tracking animation duration.
0.1
Generated using TypeDoc
Ripple parameters.