code: public void animate() {
          detectOutOfScopeElement(targetElement, () -> {
              $("document").ready(() -> {
                  onStartAnimateCallback();
                  JsPathAnimator.cta(sourceElement, targetElement, options, () -> {
                      if (animateCallback != null) {
                          animateCallback.call();
                      } else {
                          // For default animateCallback when animateCallback is null
                          targetElement.getStyle().setVisibility(Style.Visibility.VISIBLE);
                          targetElement.getStyle().setOpacity(1);
                      }
  
                      if (completedCallback != null) {
                          completedCallback.call();
                      }
                  });
              });
          });
      }
docs: Animate the path animator