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.
- 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 ...
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.