Jquery page-transitions-dialog and Page Sample video + 3 html page markup codes from jquery mobil demos.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Accordion - Customize icons</title>
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
<link rel="stylesheet" href="http://demos.jquerymobile.com/1.4.5/css/themes/default/jquery.mobile-1.4.5.min.css">
<link rel="stylesheet" href="http://demos.jquerymobile.com/1.4.5/_assets/css/jqm-demos.css">
<script src="http://demos.jquerymobile.com/1.4.5/js/jquery.js"></script>
<script src="http://demos.jquerymobile.com/1.4.5/_assets/js/index.js"></script>
<script src="http://demos.jquerymobile.com/1.4.5/js/jquery.mobile-1.4.5.min.js"></script>
<script src="jquery.mobile-1.4.5.min.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
</head>
<body>
<table margin="0">
<tbody>
<tr>
<th><h3>fade</h3></th>
<td><a href="page-transitions-dialog.html" data-rel="dialog" data-transition="fade" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">dialog</a></td>
<td><a href="page-transitions-page.html" data-transition="fade" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">page</a></td>
</tr>
<tr>
<th><h3>pop</h3></th>
<td><a href="page-transitions-dialog.html" data-rel="dialog" data-transition="pop" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">dialog</a></td>
<td><a href="page-transitions-page.html" data-transition="pop" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">page</a></td>
</tr>
<tr>
<th><h3>flip</h3></th>
<td><a href="page-transitions-dialog.html" data-rel="dialog" data-transition="flip" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">dialog</a></td>
<td><a href="page-transitions-page.html" data-transition="flip" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">page</a></td>
</tr>
<tr>
<th><h3>turn</h3></th>
<td><a href="page-transitions-dialog.html" data-rel="dialog" data-transition="turn" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">dialog</a></td>
<td><a href="page-transitions-page.html" data-transition="turn" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">page</a></td>
</tr>
<tr>
<th><h3>flow</h3></th>
<td><a href="page-transitions-dialog.html" data-rel="dialog" data-transition="flow" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">dialog</a></td>
<td><a href="page-transitions-page.html" data-transition="flow" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">page</a></td>
</tr>
<tr>
<th><h3>slidefade</h3></th>
<td><a href="page-transitions-dialog.html" data-rel="dialog" data-transition="slidefade" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">dialog</a></td>
<td><a href="page-transitions-page.html" data-transition="slidefade" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">page</a></td>
</tr>
<tr>
<th><h3>slide</h3></th>
<td><a href="page-transitions-dialog.html" data-rel="dialog" data-transition="slide" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">dialog</a></td>
<td><a href="page-transitions-page.html" data-transition="slide" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">page</a></td>
</tr>
<tr>
<th><h3>slideup</h3></th>
<td><a href="page-transitions-dialog.html" data-rel="dialog" data-transition="slideup" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">dialog</a></td>
<td><a href="page-transitions-page.html" data-transition="slideup" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">page</a></td>
</tr>
<tr>
<th><h3>slidedown</h3></th>
<td><a href="page-transitions-dialog.html" data-rel="dialog" data-transition="slidedown" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">dialog</a></td>
<td><a href="page-transitions-page.html" data-transition="slidedown" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">page</a></td>
</tr>
<tr>
<th><h3>none</h3></th>
<td><a href="page-transitions-dialog.html" data-rel="dialog" data-transition="none" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">dialog</a></td>
<td><a href="page-transitions-page.html" data-transition="none" class="ui-btn ui-corner-all ui-shadow ui-btn-inline">page</a></td>
</tr>
</tbody>
</table>
</body>
</html>
**page-transitions-dialog.html
<!DOCTYPE html>
<html>
<head>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>Transitions - jQuery Mobile Demos</title>
 <link rel="shortcut icon" href="../favicon.ico">
 <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
 <link rel="stylesheet" href="../css/themes/default/jquery.mobile-1.4.5.min.css">
 <link rel="stylesheet" href="../_assets/css/jqm-demos.css">
 <script src="../js/jquery.js"></script>
 <script src="../_assets/js/index.js"></script>
 <script src="../js/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
 <div data-role="page" id="dialog-success" data-dom-cache="true">
  <!-- dialog-->
  <div data-role="header" data-theme="b">
   <h1>Dialog</h1>
  </div><!-- /header -->
  <div class="ui-content" role="main">
   <p>That was an animated page transition effect to a dialog that we added with a <code>data-transition</code> attribute on the link.</p>
   <p>Since it uses CSS animations, this should be hardware accelerated on many devices. To see transitions, 3D transform support is required so if you only saw a fade transition that's the reason.</p>
   <a href="index.html" class="ui-btn ui-corner-all ui-shadow ui-btn-b" data-rel="back">Take me back</a>
  </div>
 </div><!-- dialog-->
 <div data-role="page" id="page-success"></div>
</body>
</html>
**page-transitions-page.html
<!DOCTYPE html>
<html>
<head>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>Transitions - jQuery Mobile Demos</title>
 <link rel="shortcut icon" href="../favicon.ico">
 <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
 <link rel="stylesheet" href="../css/themes/default/jquery.mobile-1.4.5.min.css">
 <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/start/jquery-ui.css">
 <link rel="stylesheet" href="../_assets/css/jqm-demos.css">
 <script src="../js/jquery.js"></script>
 <script src="../_assets/js/index.js"></script>
 <script src="../js/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
 <div data-role="page" id="page-success" data-dom-cache="true">
  <!-- page-->
  <div data-role="header" data-theme="a">
   <h1>Page</h1>
  </div><!-- /header -->
  <div class="ui-content" role="main">
   <p>That was an animated page transition effect to a page that we added with a <code>data-transition</code> attribute on the link. This uses a different background theme swatch to see how that looks with the transitions.</p>
   <p>Since it uses CSS animations, this should be hardware accelerated on many devices. To see transitions, 3D transform support is required so if you only saw a fade transition that's the reason.</p>
   <form action="#" method="get">
    <h2>Here's a few form elements</h2>
    <p>These are here to see if this slows down rendering.</p>
    <div class="ui-field-contain">
     <label for="name">Text Input:</label>
     <input type="text" name="name" id="name" value="">
    </div>
    <div class="ui-field-contain">
     <label for="textarea">Textarea:</label>
     <textarea cols="40" rows="8" name="textarea" id="textarea"></textarea>
    </div>
    <div class="ui-field-contain">
     <label for="slider2">Flip switch:</label>
     <select name="slider2" id="slider2" data-role="slider">
      <option value="off">Off</option>
      <option value="on">On</option>
     </select>
    </div>
    <div class="ui-field-contain">
     <label for="slider">Slider:</label>
     <input type="range" name="slider" id="slider" value="0" min="0" max="100" data-highlight="true">
    </div>
   </form>
   <a href="index.html" class="ui-btn ui-corner-all ui-shadow ui-btn-b ui-btn-inline" data-rel="back">Take me back</a>
  </div>
  <div data-role="footer" data-theme="a">
   <div style="margin:5px 10px;">
    <!-- To add a bit of spacing -->
    <label for="search" class="ui-hidden-accessible">Search:</label>
    <input type="search" name="password" id="search" placeholder="Search..." value="">
   </div>
  </div><!-- /footer -->
 </div>
</body>
</html>
Yorumlar
Yorum Gönder