Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8106644

When nesting a ParallelTransition inside a SequentialTransition, any Transitions that follow the ParallelTransition (but part of the Sequential content), are executed in parallel instead of sequentially.

XMLWordPrintable

      General nesting of Sequential/Parallel Transitions does not work as expected. In the following example code, the second FadeTransition, which is outside the ParallelTransition, but part of the SequentialTransition content, is played in parallel with the Scale and Path transitions:

      SequentialTransition {
                      node: photo
                      content: [
                          
                          FadeTransition {
                              duration: 1s
                              fromValue: 0.0
                              toValue: 1.0
                          }
                          PauseTransition {
                              duration: 2.5s
                          }
                          ParallelTransition {
                              node: photo
                              content: [

                                  ScaleTransition {
                                      duration: 14s
                                      node: photo
                                      toX: .35
                                      toY: .35
                                      autoReverse: true
                                      repeatCount: 2
                                  }

                                  PathTransition {
                                      duration: 28s
                                      node: photo
                                      interpolate: Interpolator.LINEAR
                                      path: AnimationPath.createFromPath(Path {
                                          elements: carouselElements
                                      })
                                  }
                              ]
                          } // ParallelTransition


                          // This FadeTransition should play sequentially, but
                          // it plays in parallel.
                          
                          FadeTransition {
                              duration: .2s
                              fromValue: 1.0
                              toValue: 0.3
                          }
                          
                      ]
                  } // SequentialTransition

            ckyang Chien Yang (Inactive)
            gandersonjfx Gail Anderson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: