How to use the css-animation/lib/Event.removeEndEventListener function in css-animation

To help you get started, we’ve selected a few css-animation examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ant-design / ant-design / components / _util / wave.tsx View on Github external
resetEffect(node: HTMLElement) {
    if (!node || node === this.extraNode || !(node instanceof Element)) {
      return;
    }
    const { insertExtraNode } = this.props;
    const attributeName = this.getAttributeName();
    node.setAttribute(attributeName, 'false'); // edge has bug on `removeAttribute` #14466
    this.removeExtraStyleNode();
    if (insertExtraNode && this.extraNode && node.contains(this.extraNode)) {
      node.removeChild(this.extraNode);
    }
    TransitionEvents.removeStartEventListener(node, this.onTransitionStart);
    TransitionEvents.removeEndEventListener(node, this.onTransitionEnd);
  }
github NSFI / ppfish-components / source / utils / wave.tsx View on Github external
const transitionEnd = () => {
      node.removeAttribute(attributeName);
      this.removeExtraStyleNode();
      if (insertExtraNode) {
        node.removeChild(extraNode);
      }
      TransitionEvents.removeEndEventListener(node, transitionEnd);
    };
    TransitionEvents.addEndEventListener(node, transitionEnd);
github NSFI / ppfish-components / es / utils / wave.js View on Github external
var transitionEnd = function transitionEnd() {
        node.removeAttribute(attributeName);

        _this.removeExtraStyleNode();

        if (insertExtraNode) {
          node.removeChild(extraNode);
        }

        TransitionEvents.removeEndEventListener(node, transitionEnd);
      };