With just one helper function everything in the `r...
# tornadofx
r
With just one helper function everything in the
runLater
can be squashed to
Copy code
rects.mapIndexed { i, rect ->
    rect.init()
    SequentialTransition(
        PauseTransition((i * 0.1).seconds),
        rect.scale(0.67.seconds, Point2D(0.1, 1.0), play = false),
        rect.rotate(0.33.seconds, 90.0, play = false)
    )
}.playSequentioally { cycleCount = Timeline.INDEFINITE }
👍 1