Page 27 - JqueryMobile_Manual
P. 27

27

                                                   Transitioning popups
                                                tryjqmob_popup_transitions.html
               <!DOCTYPE html>
               <html>
               <head>
               <meta name="viewport" content="width=device-width, initial-scale=1">
               <link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
               <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
               <script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
               </head>
               <body>

               <div data-role="page">
                 <div data-role="header">
                   <h1>Welcome To My Homepage</h1>
                 </div>

                 <div data-role="main" class="ui-content">
                   <p>This is a demonstration of all available transition effects for popups.</p>
                   <p><b>Note:</b> For performance reasons, jQuery Mobile recommend using "pop", "fade" or "none"
               for smooth and fast animations.</p>
                   <a href="#myPopup" data-rel="popup" class="ui-btn" data-transition="fade">Fade</a>
                   <a href="#myPopup" data-rel="popup" class="ui-btn" data-transition="flip">Flip</a>
                   <a href="#myPopup" data-rel="popup" class="ui-btn" data-transition="flow">Flow</a>
                   <a href="#myPopup" data-rel="popup" class="ui-btn" data-transition="pop">Pop</a>
                   <a href="#myPopup" data-rel="popup" class="ui-btn" data-transition="slide">Slide</a>
                   <a href="#myPopup" data-rel="popup" class="ui-btn" data-transition="slidefade">Slidefade</a>
                   <a href="#myPopup" data-rel="popup" class="ui-btn" data-transition="slideup">Slide up</a>
                   <a href="#myPopup" data-rel="popup" class="ui-btn" data-transition="slidedown">Slide down</a>
                   <a href="#myPopup" data-rel="popup" class="ui-btn" data-transition="turn">Turn</a>
                   <a href="#myPopup" data-rel="popup" class="ui-btn" data-transition="none" >No transition</a>

                   <div data-role="popup" id="myPopup" class="ui-content">
                     <p>This is a simple popup.</p>
                   </div>
                 </div>

                 <div data-role="footer">
                   <h1>Footer Text</h1>
                 </div>
               </div>

               </body>
               </html>
                                                        Popup Arrows
                                                  tryjqmob_popup_arrow.html
               <!DOCTYPE html>
               <html>
               <head>
               <meta name="viewport" content="width=device-width, initial-scale=1">
               <link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
               <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
               <script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
               </head>
   22   23   24   25   26   27   28   29   30   31   32