Exercises
To complete these exercises, you will need the index.html
file for this chapter, as well as the finished JavaScript code as found in complete.js
. These files can be downloaded from the Packt Publishing website at http://www.packtpub.com/support.
Increase the cycle transition duration to half a second, and change the animation such that each slide fades out before the next one fades in. Refer to the Cycle documentation to find the appropriate option to enable this.
Set the
cyclePaused
cookie to persist for 30 days.Constrain the title box to resize only in ten pixel increments.
Make the slider animate smoothly from one position to the next as the slideshow advances.
Instead of letting the slideshow loop forever, cause it to stop after the last slide is shown. Disable the buttons and slider when this happens.
Create a new jQuery UI theme that has a light blue widget background and dark blue text, and apply the theme to our sample document.