O'Reilly logo

JavaFX 1.2 Application Development Cookbook by Vladimir Vivien

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating simple animation with the Transition API

As you read this chapter, you will find out that JavaFX provides a powerful animation engine that lets you create complex sequences (see the Introduction). However, if your need is to create simple straightforward animated sequences, JavaFX has got you covered. In this recipe, we will explore how to create simple animations quickly using the JavaFX Transition API.

Getting ready

Before you can create transition-based animations, you must be familiar with the steps required to create simple shapes using the Shape API. See Chapter 2, Drawing simple shapes for background information on creating simple shapes.

All of the classes provided by the Transition API are located in the package javafx.animation.transition ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required