ink-ripple.js
/**
   * Simulates a ripple effect at the given parameter coordinates.
   * 
   * If missing one or both parameters, ripple originates from center
   * 
   * @param {number} x The X coordinate of the ripple origin
   * @param {number} y The Y coordinate of the ripple origin
   */
Simulates a ripple effect at the given parameter coordinates.

If missing one or both parameters, ripple originates from center

@param {number} x The X coordinate of the ripple origin
@param {number} y The Y coordinate of the ripple origin
Simulates a ripple effect at the given parameter coordinates . If missing one or both parameters ripple originates from center @param { number } x The X coordinate of the ripple origin @param { number } y The Y coordinate of the ripple origin
simulateRipple(x = false, y = false) {
    if (!x || !y) {
      const rect = this.getBoundingClientRect();
      x = rect.width / 2;
      y = rect.height / 2;
    }
    this._triggerRippleIn(x, y);
    this.addEventListener('transitionend', (e) => {
      if (e.propertyName === 'transform' ) {
        this._triggerRippleOut();
      }
    });
  }
simulateRipple ( x = false , y = false ) { if ( ! x || ! y ) { const rect = this . getBoundingClientRect ( ) ; x = rect . width / 2 ; y = rect . height / 2 ; } this . _triggerRippleIn ( x , y ) ; this . addEventListener ( 'transitionend' , ( e ) => { if ( e . propertyName === 'transform' ) { this . _triggerRippleOut ( ) ; } } ) ; }
Simulates a ripple effect at the given parameter coordinates.
Simulates a ripple effect at the given parameter coordinates .