AudioJungle

Bit of js help

3399 posts
  • Australia
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
Australia says

Using a slider ( swipe.js ) for a project.

I need to nail down the slide animation, prefer the elastic effect.

The code for the slider ( control method )

this.options = options || {}; this.index = this.options.startSlide || 0; this.speed = this.options.speed || 6000; this.callback = this.options.callback || function() {}; this.delay = this.options.auto || 1;

It is set to auto start. With speed 6000

Original code :

https://raw.github.com/bradbirdsall/Swipe/master/swipe.js

I am crap at jQuery, hence I thought I would ask here. Our coder is off for a few days, so muggins has decided to play around with some scripting lol.

3399 posts
  • Australia
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
Australia says

Actually I changed the code:

startSlide: 0,
 speed: 300,
 auto: 3000,
 continuous: true,
by
by
by
by
by