3

When clicking on the "home" button in my menu, I want a page transition (data-transition="slide") in the reverse move. Does something like data-transition="slideBACK" exist ?

Gajotres
  • 57,309
  • 16
  • 102
  • 130
Hugolpz
  • 17,296
  • 26
  • 100
  • 187

1 Answers1

8

You can do it like this:

$.mobile.changePage("help.html", {
    reloadPage: true,
    transition: "slide",
    reverse: true
});

You will get wanted effect.

Working example: http://jsfiddle.net/Gajotres/82ke9/

To test it, go to the second page and click button Slide back.

Or there's a pure HTML solution:

<a href="#index" data-role="button"  data-direction="reverse" data-transition="slide">Reverse slide back - Variant</a> 
Gajotres
  • 57,309
  • 16
  • 102
  • 130