Skip to content

Commit 66fb6bb

Browse files
committed
Moved the transition sampler page to a multi-page format to avoid the loader every time you want to try a transition. Leaving the old page here for now because we may link to it elsewhere.
1 parent 01f61cf commit 66fb6bb

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

docs/pages/page-transitions.html

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ <h2>Page transitions</h2>
3333
</code></code>
3434

3535
<p>
36-
<a href="transition-success.html" data-role="button" data-rel="dialog" data-transition="slide" data-prefetch>slide</a>
37-
<a href="transition-success.html" data-role="button" data-rel="dialog" data-transition="slideup">slideup</a>
38-
<a href="transition-success.html" data-role="button" data-rel="dialog" data-transition="slidedown">slidedown</a>
39-
<a href="transition-success.html" data-role="button" data-rel="dialog" data-transition="pop">pop</a>
40-
<a href="transition-success.html" data-role="button" data-rel="dialog" data-transition="fade">fade</a>
41-
<a href="transition-success.html" data-role="button" data-rel="dialog" data-transition="flip">flip *</a>
36+
<a href="#dialog" data-role="button" data-rel="dialog" data-transition="slide">slide</a>
37+
<a href="#dialog" data-role="button" data-rel="dialog" data-transition="slideup">slideup</a>
38+
<a href="#dialog" data-role="button" data-rel="dialog" data-transition="slidedown">slidedown</a>
39+
<a href="#dialog" data-role="button" data-rel="dialog" data-transition="pop">pop</a>
40+
<a href="#dialog" data-role="button" data-rel="dialog" data-transition="fade">fade</a>
41+
<a href="#dialog" data-role="button" data-rel="dialog" data-transition="flip">flip *</a>
4242
</p>
4343

4444
<p>NOTE: The flip transition isn't rendered correctly on most versions of Android because it lacks 3D CSS transform capabilities. Unfortunately, instead of ignoring the flip, Android makes the page "cartwheel" away by rotating instead of flipping. We recommend using this transition sparingly until support improves.</p>
@@ -83,6 +83,24 @@ <h3>More in this section</h3>
8383
</div>
8484

8585
</div><!-- /page -->
86+
87+
88+
89+
90+
91+
<div data-role="page" id="dialog"><!-- dialog-->
92+
93+
<div data-role="header" data-theme="e">
94+
<h1>Ta-da!</h1>
95+
</div><!-- /header -->
96+
97+
<div data-role="content" data-theme="e">
98+
<p>That was an animated page transition effect that we added with a <code>data-transition</code> attribute on the link.</p>
99+
<p>Since it uses CSS transforms, this should be hardware accelerated on many mobile devices.</p>
100+
<p>What do you think?</p>
101+
<a href="docs-transitions.html" data-role="button" data-theme="b" data-rel="back">I like it</a>
102+
</div>
103+
</div>
86104

87105
</body>
88106
</html>

0 commit comments

Comments
 (0)