code: public void reverseAnimate() {
          onStartAnimateCallback();
          $("document").ready(() -> {
              if (reverseCallback != null) {
                  reverseCallback.call();
              } else {
                  targetElement.getStyle().setVisibility(Style.Visibility.HIDDEN);
                  targetElement.getStyle().setOpacity(0);
              }
              detectOutOfScopeElement(sourceElement, () -> JsPathAnimator.cta(targetElement, sourceElement, options, () -> onCompleteCallback()));
          });
      }
docs: Reverse the Animation