JAVASCRIPT   59

rotation.js

Guest on 12th September 2021 10:23:59 AM

  1. // JavaScript Document
  2. $('.plate').cycle({
  3.     fx:     'scrollHorz',
  4.     speed:  'slow',
  5.         timeout: 5000,
  6.         next:'#next_pro',
  7.         prev:'#prev_pro'
  8.   // timeoutFn: calculateTimeout
  9. });
  10. /*function calculateTimeout(currElement, nextElement, opts, isForward) {
  11.     var index = opts.currSlide;
  12.     return index == 0 ? 10000 : 6000;
  13. } */

Raw Paste


Login or Register to edit or fork this paste. It's free.