Nivo Slider

In our templates that include a sideshow, we prefer using the Nivo Slider. It has been around a long time, gone through several updates, and is very reliable. It is also cross-browser friendy, responsive, and free to use. That makes it perfect for our needs.

Nivo Slider

The instructions page in your template will give details on the required image sizes and how to change the caption text on each image. It is important to note that the slideshow in your template may only use one image. That makes it look like only the caption changes. You can, of course, add different images.

HTML
  1. <div id="slider" class="nivoSlider">
  2. <img src="images/mainimage1.jpg" alt="" title="#htmlcaption1">
  3. <img src="images/mainimage2.jpg" alt="" title="#htmlcaption2">
  4. <img src="images/mainimage3.jpg" alt="" title="#htmlcaption3">
  5. </div>
  6. <div id="htmlcaption1" style="display:none">
  7. <div class="nivo-caption1">What does your web site say about your business?</div>
  8. </div>
  9. <div id="htmlcaption2" style="display:none">
  10. <div class="nivo-caption2">Easily replace our sample images with your own.</div>
  11. </div>
  12. <div id="htmlcaption3" style="display:none">
  13. <div class="nivo-caption3">This text is easy to change. Be creative.</div>
  14. </div>

Some items of note:

To change the slideshow effect or speed

You can edit the javascript to change the image transition effect and the animation speed. It will be in the main.js for newer templates or in slideshow.js for older ones. Again refer to the template's instructions page.

Slideshow javascript controls
  1. $(window).load(function() {
  2. $('#slider').nivoSlider({
  3. effect:'fold',
  4. slices: 25,
  5. boxCols: 15, // For box animations
  6. boxRows: 8, // For box animations
  7. animSpeed:2000,
  8. pauseTime:7000,
  9. directionNav:false,
  10. captionOpacity:0.80, //Universal caption opacity
  11. controlNav:false,
  12. keyboardNav:false,
  13. pauseOnHover:false
  14. });
  15. });
  16. //The effect parameter can be any of the following:
  17. //
  18. // sliceDown
  19. // sliceDownLeft
  20. // sliceUp
  21. // sliceUpLeft
  22. // sliceUpDown
  23. // sliceUpDownLeft
  24. // fold
  25. // fade
  26. // random
  27. // slideInRight
  28. // slideInLeft
  29. // boxRandom
  30. // boxRain
  31. // boxRainReverse
  32. // boxRainGrow
  33. // boxRainGrowReverse