/* For any bug or suggestion please contact: vaibhav.kumar@gmail.com */ import javafx.ui.*; import javafx.ui.canvas.*; var scroll_time; // this is not linear motion. Check out the other options as well like easein, easeout. scroll_time = [500..100] dur 6000 easeboth continue if true; var car = ImageView { transform: bind translate(scroll_time, 0) image: Image { url: "http://www.gifs.net/Animation11/Transportation/Cars/Girl_in_car.gif"} // URL are taken from internet and can change with time }; var road= ImageView { image: Image { url: "http://www.wall.org/~larry/onion/road.gif"} // URL are taken from internet and can change with time }; Canvas { content: [ road,car]