In this recipe, you'll learn to create a carousel. A carousel is a widget that allows the user to slide back and forth between different elements. In our recipe, these elements will be pictures. This method provides a simple and intuitive mechanism for displaying pictures, allowing users to skip between them with a simple touch gesture. Optionally, the carousel can be configured to work as an automatic slideshow.
You can use as many images as you want, but we're only going to work with three pictures for this recipe.
The complete code for this recipe, including the pictures, can be found at code/ch04/carousel/
in the code bundle provided on the Packtpub site.
Sencha Touch provides a predefined widget that creates a carousel containing HTML elements, so we'll use this framework for this recipe. Check your computer to ensure that this framework is installed.