JavaFX – Flat Carousel
March 5, 2010 13 Comments
There was a request to write a Flat Carousel, here is an attempt using HBox, ClipView and Timeline.
The HBox content is clipped using ClipView layout. When user drags the node, ClipView.clipX is updated accordingly using a Timeline + EASEOUT Interpolator. We may use custom Interpolator as shown in SpringAnimation sample. Two buttons (vertical bars) are provided on both sides to scroll as per the width of the Carousel.
Please try it out and let me know feedback..