title: How to change the keyvalue's target value constantly in a javafx Timeline?
body: <p>Instead of giving a fixed value as a target is there any way to continuously change the keyvalues's target value while the animation is running.</p>
  
  <p>To achieve this goal I have bound the target value with a node's width property which changes continuously.But bind is not working at all when the animation starts the target value doesn't update and stuck.</p>
  
  <p>This is the code for the animation</p>
  
  <pre><code>public void setGlowAnimation(){
      System.out.println("WIDTH "+width.getValue());
      KeyValue value = new KeyValue(glowshape.centerXProperty(),width.getValue(),Interpolator.EASE_OUT);
  
      KeyFrame keyframe1 = new KeyFrame(Duration.millis(2000),value);
  
      glow_timeline = new Timeline();
      glow_timeline.setCycleCount(Timeline.INDEFINITE);
      glow_timeline.setAutoReverse(true);
      glow_timeline.getKeyFrames().add(keyframe1);
  }
  
  
  
  public void init(){
      indetermination();
      setStartAnimation();
      createEllipse();
  
      width = new SimpleDoubleProperty();
     width.bind(this.widthProperty());
     setGlowAnimation();
  }
  </code></pre>