Exercises

To complete the following 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.

  1. 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.
  2. Set the cyclePaused cookie to persist for 30 days.
  3. Constrain the title box to resize only in ten pixel increments.
  4. Make the slider animate smoothly from one position to the next as the slideshow advances.
  5. Instead of letting the slideshow loop forever, cause it to stop after ...

Get Learning jQuery - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.