image

CHAPTER

7

Animation

This chapter introduces one of the most impressive features incorporated into JavaFX: animation. Animation lets you change aspects of a node in the scene graph over a span of time. For example, you can create an animation that moves, resizes, rotates, or scales a node during the execution of a program. Thus, animation enables you to put into motion the transforms discussed in the preceding chapter. You can animate more than just those transforms, however. For example, a node can be faded and a shape can have its fill color changed. Additionally, the JavaFX animation system lets you define your own animation timeline that can ...

Get Introducing JavaFX 8 Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.