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 ?
Asked
Active
Viewed 1,648 times
3
1 Answers
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
-
1Validated ! I will use the html solution. Thanks (again) Gajotres. – Hugolpz Apr 05 '13 at 23:06