jQuery Mobile changePage with swipe transition

前端 未结 1 664
予麋鹿
予麋鹿 2021-01-16 08:30

I can\'t seem to make the \"reverse\" slide effect while handling the \"swiperight\" event. So, the code below works fine but I would like when I make the \"swiperight\" tha

相关标签:
1条回答
  • 2021-01-16 09:13

    OK first off you're using a Alpha version of jQM and the docs you are referring to a for jQM 1.1.1. I've updated your jsfiddle to use the latest jQM 1.2

    • http://jsfiddle.net/GYAB7/2/

    And I've added the correct syntax for the reverse swipe transition

    $.mobile.changePage("#page"+nextPage, {
            transition: "slide",
            reverse: false
        });
    });
    

    and the reverse transition

    $.mobile.changePage("#page"+nextPage, {
            transition: "slide",
            reverse: true
        });
    }); 
    
    0 讨论(0)
提交回复
热议问题