Questions tagged [swipe.js]

Swipe is a lightweight mobile slider with 1:1 touch movement. 1:1 touch movement is sliding content based on exact touch position. It's a different level of interacting with the content, more intuitive than swiping left to right and then watching the slider move to the proper position.

Mobile size constraints mixed with new web functionality is allowing us to develop new models for how users interact with the web. This is a good thing. It forces us mobile web developers to rethink how we build the web. One of these key interactions is swiping through content, whether it be images, text, or other media. Image sliders and galleries populate the web as a way to display more in less space. This pattern is even more effective on mobile devices.

Swipe exposes a few functions that can be useful for script control of your slider.

prev() slide to prev

next() slide to next

getPos() returns current slide index position

getNumSlides() returns the total amount of slides

slide(index, duration) slide to set index position (duration: speed of transition in milliseconds)

16 questions
0
votes
2 answers

Proper way to 'setup on-demand' and 'reset' jQuery plugins such as swipe.js?

I'm building a PhoneGap app where I'd like to use swipe.js--which is a 'swipable' and auto-animated carousel. To set it up, you declare it as such: window.mySwipe = new Swipe(document.getElementById('slider'), { (parameters here) }); This is fine,…
DA.
  • 39,848
  • 49
  • 150
  • 213
1
2