Mouse interaction

By default rotation and view point follow mouse movements. You can set the maximum rotation speed by setting the interaction > speed option in the xml file. Negative values invert the direction.

In the following example the speed is set to -180° per second. [Download xml]

You can set a default speed and a default position of the view point (options interaction > default_speed and interaction > default_view_point, respectively). At the beginning the Carousel will display according with these default values; but when the mouse moves over the Carousel speed and view point will change. You can also specify an amount of time (interaction > reset_delay): if the Carousel doesn't see any mouse movement (in its area), after reset_delay seconds speed and view point are reset to default values.

In the following example the default_speed is set to -25° per second and default_view_point is 100% (equivalent to the mouse beeing at the bottom of the Carousel area). The reset_delay is set to 5 seconds. [Download xml]

If don't like vertical movement set interaction > view_point to none. The view point will be fix at the value provided by the default_view_point option. To control movement smoothness use the friction option.

Enjoy my Carousel, Saverio.