diff --git a/docs/pages/page-transitions.html b/docs/pages/page-transitions.html index 3d0227e8..67d0f97f 100755 --- a/docs/pages/page-transitions.html +++ b/docs/pages/page-transitions.html @@ -23,23 +23,61 @@

Page transitions

-

The jQuery Mobile framework includes a set of six CSS-based transition effects that can be applied to any page link or form submission with Ajax navigation:

+

The jQuery Mobile framework includes a set of CSS-based transition effects that can be applied to any page link or form submission with Ajax navigation:

-
-
- none - fade - pop - flip - turn -
- -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

fade

dialogpage

pop

dialogpage

flip

dialogpage

turn

dialogpage

flow

dialogpage

slide

dialogpage

slideup

dialogpage

slidedown

dialogpage

none

dialogpage

NOTE: To view all transition types, you must be on a browser that supports 3D transforms and be viewing on a screen width of 1,000 pixels or less. By default, devices that lack 3D support will fallback to "fade" for all transition types. Above 1,000 pixels, all transitions are set to "none". These behaviors are all configurable (see below).

@@ -273,20 +311,57 @@ $.mobile.defaultTransitionHandler = myTransitionHandler;

Transitions and scroll position

One of the key things jQuery Mobile does is store your scroll position before starting a transition so it can restore you to the same place once you return to the page when hitting the Back button or closing a dialog. Here are the same buttons from the top to test the scrolling logic.

-
-
- none - fade - pop - flip -
- -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

fade

dialogpage

pop

dialogpage

flip

dialogpage

turn

dialogpage

flow

dialogpage

slide

dialogpage

slideup

dialogpage

slidedown

dialogpage

none

dialogpage
+ +

rotate

@@ -330,19 +405,70 @@ $.mobile.defaultTransitionHandler = myTransitionHandler; -
+
-

Ta-da!

+

Dialog

-

That was an animated page transition effect that we added with a data-transition attribute on the link.

-

Since it uses CSS transforms, this should be hardware accelerated on many mobile devices.

-

What do you think?

- I like it +

That was an animated page transition effect to a dialog that we added with a data-transition attribute on the link.

+

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.

+ + Take me back
+ +
+ +
+

Page

+
+ +
+

That was an animated page transition effect to a page that we added with a data-transition attribute on the link. This uses a different background theme swatch to see how that looks with the transitions.

+

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.

+ +
+ +

Here's a few form elements

+ +

These are here to see if this slows down rendering.

+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ Take me back +
+ +
+
+ + +
+
+