page transition not working
I'm having a fair amount of difficulty trying to figure out how to make a transition between two html pages..
I've put the link that isn't working in red.
index.html
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <title>Untitled Document</title>
- <link rel="stylesheet" href="css/style.css" />
- <script src="js/jquery-1.7.2.min.js"></script>
- <script>
- $(document).bind("mobileinit", function(){
-
- $.mobile.loadingMessage = false;
-
- });
- </script>
- <script src="js/jquery.mobile-1.1.1.min.js"></script>
- <script>
- $('document').ready(function(){
- $("#topButton").click(function(){
- $('html, body').animate({scrollTop: 0}, 'slow');
- });
- });
- </script>
- </head>
- <body>
- <div id="wrapper" data-role="page">
- <div id="topWrapper">
- <div id="top">
- <div class="logo"><img src="images/logo.jpg" alt="syntetik" title="syntetik" /></div>
- <p class="intro">We are a creative collective delivering digital work for advertisers, ad agencies and government.</p>
- <hr class="line" />
-
- <a href="detail.html" data-transition="slide" rel="external"><img class="work_thumb" src="images/test.jpg" /><span class="caption"><h2>website</h2><h3>altripan</h3></span></a>
- </div>
- </div>
- <div id="bottomWrapper">
- <div id="bottom">
- <a href="#"><div id="topButton"><img src="images/topButton.jpg" /><span class="text">top</span></div></a>
-
- <div id="mailus">
- <span class="text">Email us</span> <a class="right" href="mailto:info@syntetik.be">info@syntetik.be</a>
- </div>
-
- <hr class="line" />
- <div id="callus">
- <span class="text">Call us</span><a class="right" href="tel:+32486836401">0486 83 64 01</a>
- <a class="right secondline" href="tel:+32496821801">0496 82 18 01</a><br /><br /><br /><br />
- </div>
-
- <hr class="line" />
- <div id="findus">
- <span class="text">Find Us</span> <p class="right">Meirbrug 1 bus 34</p><p class="right secondline">2000 Antwerp</p><br /><br /><br /><br />
- </div>
- <hr class="line" />
- <div id="social">
- <a class="fb" href="http://www.facebook.com/pages/Syntetik/161733833884576"><img src="images/fb_logo.jpg" alt="facebook" title="syntetik facebook" /></a>
-
- <a href="http://twitter.com/syntetik"><img src="images/twit_logo.jpg" alt="twitter" title="syntetik twitter" /></a>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
detail.html
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <title>Untitled Document</title>
- <link rel="stylesheet" href="css/style.css" />
- <script src="js/jquery-1.7.2.min.js"></script>
- <script src="js/easySlider1.7.js"></script>
- <script>
- $(document).bind("mobileinit", function(){
-
- $.mobile.loadingMessage = false;
-
- });
- </script>
- <script src="js/jquery.mobile-1.1.1.min.js"></script>
- <script>
- $('document').ready(function(){
- $("#topButton").click(function(){
- $('html, body').animate({scrollTop: 0}, 'slow');
- });
- $("#slideshow").easySlider({
- auto: true,
- continuous: true,
- controlsShow: false
- });
- });
- </script>
- </head>
- <body>
- <div id="wrapper" data-role="page">
- <div id="topWrapper">
- <div id="top">
- <div class="logo"><img src="images/logo.jpg" alt="syntetik" title="syntetik" /></div>
- <div>
- <ul>
- <li><img class="work_thumb" src="images/test.jpg" /></li>
- <li><img class="work_thumb" src="images/test2.jpg" /></li>
- </ul>
- </div>
- <hr class="line" />
- <h2>Altripan</h2>
- <h3>Website</h3>
- <p class="description">Donut oat cake cotton candy gingerbread biscuit chupa chups pie tootsie roll. Cotton candy dragée tiramisu gummi bears halvah. Chocolate bar icing bonbon liquorice oat cake cotton candy donut. Tart gummies lollipop lemon drops gummi bears dragée chocolate.</p><br />
-
- <p class="extern">Client: KPN Group - VVMA</p>
- <p class="extern">Partners: Dreams & Creations, Yappa</p>
- </div>
- </div>
- <div id="bottomWrapper">
- <div id="bottom">
- <a href="#"><div id="topButton"><img src="images/topButton.jpg" /><span class="text">top</span></div></a>
- <br />
- <a href="#"><div id="backButton"><img src="images/backButton.jpg" /><span class="text">back to work</span></div></a>
-
- <div id="mailus">
- <span class="text">Email us</span> <a class="right" href="mailto:info@syntetik.be">info@syntetik.be</a>
- </div>
-
- <hr class="line" />
- <div id="callus">
- <span class="text">Call us</span><a class="right" href="tel:+32486836401">0486 83 64 01</a>
- <a class="right secondline" href="tel:+32496821801">0496 82 18 01</a><br /><br /><br /><br />
- </div>
-
- <hr class="line" />
- <div id="findus">
- <span class="text">Find Us</span> <p class="right">Meirbrug 1 bus 34</p><p class="right secondline">2000 Antwerp</p><br /><br /><br /><br />
- </div>
- <hr class="line" />
- <div id="social">
- <a class="fb" href="http://www.facebook.com/pages/Syntetik/161733833884576"><img src="images/fb_logo.jpg" alt="facebook" title="syntetik facebook" /></a>
-
- <a href="http://twitter.com/syntetik"><img src="images/twit_logo.jpg" alt="twitter" title="syntetik twitter" /></a>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
I've also tried the whole thing without the rel="external".
I've also tested the entire thing on a local server, a webserver and even iphone and android.
If been looking for a while now, since i'm pretty sure there's already a solution for this problem on the web, but i just can't seem to get my hands on it!
Any help would by much appreciated..
Jonas