{
// Transition panel
final ComponentTransition componentTransition = new ComponentTransition ();
// Transition effect
final BlocksTransitionEffect effect = new BlocksTransitionEffect ();
effect.setDirection ( Direction.random );
effect.setType ( BlockType.cascade );
effect.setSize ( 40 );
effect.setSpeed ( 4 );
effect.setFade ( false );
componentTransition.setTransitionEffect ( effect );
// Effects
final WebImage image1 = new WebImage ( loadIcon ( "pictures/1.jpg" ) );
final WebImage image2 = new WebImage ( loadIcon ( "pictures/2.jpg" ) );