The ripple effect is typically used in material design to indicate user interaction.
public void Waves(Element target)
target
The DOM element on which the ripple effect will be applied.
public void Waves(DominoElement<? extends Element> target)
This constructor wraps the target in a sentinel div which is then used to handle the ripple effect. The sentinel div is appended as a child to the target element.
target
The DominoElement on which the ripple effect will be applied.
public static Waves create(Element target)
target
The DOM element target.
A new Waves instance.
public static Waves create(DominoElement<? extends Element> target)
This method provides a more expressive way to construct a `Waves` object compared to using the direct constructor.
target
The DominoElement on which the ripple effect will be applied.
A new Waves instance associated with the provided target.
public void removeWaves()
This method detaches the wave event listener from the target and subsequently removes the sentinel div (used for the ripple effect) from the DOM.