android - Can't make transitions work -
i've been trying make transitions work , had no luck, took example http://www.w3schools.com/jquerymobile/tryit.asp?filename=tryjqmob_trans_reverse , change url make work locally, nothing happened.
<!doctype html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css"> <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script> </head> <body> <div data-role="page" id="pageone"> <div data-role="header"> <h1>welcome homepage</h1> </div> <div data-role="main" class="ui-content"> <p>click on link see slide effect (slides next page right left).</p> <a href="test2.html" rel="external" data-transition="slide">slide page two</a> </div> <div data-role="footer"> <h1>footer text</h1> </div> </div> <div data-role="page" id="pagetwo"> <div data-role="header"> <h1>welcome homepage</h1> </div> <div data-role="main" class="ui-content"> <p>click on link see slide effect reversed (slides previous page left right).</p> <a href="#pageone" data-transition="slide" data-direction="reverse">slide page 1 (reversed)</a> </div> <div data-role="footer"> <h1>footer text</h1> </div> </div> </body> </html>
it redirects without transition animation.
i have no clue of i'm doing wrong.
many thanks.
Comments
Post a Comment