diff --git a/docs/pages/page-transitions.html b/docs/pages/page-transitions.html index 2abaf8d1..1fa6bf7f 100755 --- a/docs/pages/page-transitions.html +++ b/docs/pages/page-transitions.html @@ -23,23 +23,61 @@
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:
- + + +fade |
+ dialog | +page | +
|---|---|---|
pop |
+ dialog | +page | +
flip |
+ dialog | +page | +
turn |
+ dialog | +page | +
flow |
+ dialog | +page | +
slide |
+ dialog | +page | +
slideup |
+ dialog | +page | +
slidedown |
+ dialog | +page | +
none |
+ dialog | +page | +
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;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.
- + + +fade |
+ dialog | +page | +
|---|---|---|
pop |
+ dialog | +page | +
flip |
+ dialog | +page | +
turn |
+ dialog | +page | +
flow |
+ dialog | +page | +
slide |
+ dialog | +page | +
slideup |
+ dialog | +page | +
slidedown |
+ dialog | +page | +
none |
+ dialog | +page | +
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 backThat 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.
+ + + Take me back +