UIZE JavaScript Framework

JAVASCRIPT EXAMPLES 3D Rotation Viewer

In this example, an instance of the Uize.Widget.Drag class is being used to create a simple 3D rotation viewer. Using a mouse, you can click and drag to rotate the 3D image. On a tablet device (or any computer with a touch screen) you can use your finger. The viewer implements a deceleration behavior - the speed at the time of release determines how long it will take to spin down to a stop. When the page loads initially, the image is animated 360 degrees clockwise. Buttons beneath the viewer let you trigger other kinds of spins.

 

 


Alle Beelden van John van den Heuvel

Salis Fee (Wilg wortel met glazen sokkel 40 x 50 cm)