JQuery Help — Swipe JS
JQuery Help — Swipe JS
- Started
- Last post
- 5 Responses
- Q01
I've implemented swipe.js by @bradbirdsall (http://swipejs.com/)
The plugin has a transitionEnd feature. How can I get it to direct the user to .index.html when they reach the last slide?
window.mySwipe = new Swipe(document.getElementById('s... {
callback: function(index, elem) {},
transitionEnd: function(index, elem) {}
});New to jQuery. Happy to learn but short on time here. Thanks in advance for any help!
- kingsteven0
at a guess:
transitionEnd: function(index, elem) { window.location.href = 'index.html' }
- graham0
Need to add an if statement to check it's the last slide
- kingsteven0
you should probably join stackoverflow.com or just google yr problems/bugs like so: http://goo.gl/JDYdt
- ernexbcn0
Post a sample of your code here http://jsfiddle.com and then we can help.