The Train Gif JavaScript Project

Phase 2b

After a long development, the all new Train Gif JavaScript Project is now ready.
For this new version, a much easier set of setup functions have been provided.
The author only needs to provide a list of gifs to define a train's consist.

Only a
single statement is needed in the body of the page, to define the location of the
scene. That also means that the author has much more control over how the scene is
placed on the page. Scenes can now be defined by several methods, including based on the
size of a background image. The author can also put multiple scenes in a single page.

The current version provides a limited stop and go capability, including reversal. Any train
that starts out at over 25 MPH, and then stops, will continue in the same direction after
stopping. Otherwise it will return the direction from which it came.
Future versions will allow more control over stop time and other movement parameters.

There's now a tutorial describing how to
add animated scenes to your pages.

(thanks to Alex Stroshane and
Chris Denbow for the rolling stock used in the demo on this page.)