2010-10-14 04:12:17 +00:00
<!DOCTYPE html>
< html >
2010-11-02 01:46:29 +00:00
< head >
2011-02-18 20:00:18 +00:00
< meta charset = "utf-8" >
2011-05-17 21:28:19 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
2011-03-31 13:11:26 +00:00
< title > jQuery Mobile Docs - Transitions< / title >
2011-01-06 00:19:24 +00:00
< link rel = "stylesheet" href = "../../themes/default/" / >
2010-11-11 19:15:42 +00:00
< link rel = "stylesheet" href = "../_assets/css/jqm-docs.css" / >
2011-04-14 20:04:47 +00:00
< script src = "../../js/jquery.js" > < / script >
< script src = "../../js/" > < / script >
2010-10-14 04:12:17 +00:00
< / head >
< body >
< div data-role = "page" >
2011-02-03 22:29:48 +00:00
< div data-role = "header" data-theme = "b" >
2010-10-14 04:12:17 +00:00
< h1 > Transitions< / h1 >
2011-02-03 23:34:35 +00:00
< a href = "../../" data-icon = "home" data-iconpos = "notext" data-direction = "reverse" class = "ui-btn-right jqm-home" > Home< / a >
2010-10-14 04:12:17 +00:00
< / div > <!-- /header -->
< div data-role = "content" >
< h2 > Page transitions< / h2 >
2010-10-15 13:15:07 +00:00
< p > The jQuery Mobile framework includes a set of six CSS-based transition effects that can be applied to any object or page change event, which apply the chosen transition when navigating to a new page and the reverse transition for the Back button. By default, the framework applies the right to left slide transition.< / p >
2010-10-14 04:12:17 +00:00
< p > To set a custom transition effect, add the < code > data-transition< / code > attribute to the link. Possible values include: < / p >
< code > < code >
< a href=" index.html" data-transition=" pop" > I'll pop< /a>
< / code > < / code >
< p >
2010-11-09 15:03:51 +00:00
< a href = "transition-success.html" data-role = "button" data-rel = "dialog" data-transition = "slide" > slide< / a >
< a href = "transition-success.html" data-role = "button" data-rel = "dialog" data-transition = "slideup" > slideup< / a >
< a href = "transition-success.html" data-role = "button" data-rel = "dialog" data-transition = "slidedown" > slidedown< / a >
< a href = "transition-success.html" data-role = "button" data-rel = "dialog" data-transition = "pop" > pop< / a >
< a href = "transition-success.html" data-role = "button" data-rel = "dialog" data-transition = "fade" > fade< / a >
< a href = "transition-success.html" data-role = "button" data-rel = "dialog" data-transition = "flip" > flip< / a >
2010-10-14 04:12:17 +00:00
< / p >
2010-10-15 19:06:18 +00:00
2011-01-23 23:12:46 +00:00
< p > In addition, you can also force a "backwards" transition by specifying < code > data-direction="reverse"< / code > on your link. Note: (this was formerly < code > data-back="true"< / code > , which will remain supported until 1.0)< / p >
2010-10-18 22:20:47 +00:00
2010-10-15 19:06:18 +00:00
< div class = "ui-body ui-body-e" >
< p > < strong > Transitions from < a href = "http://www.jqtouch.com/" > jQtouch< / a > < / strong > (< em > with small modifications< / em > ): Built by David Kaneda and maintained by Jonathan Stark.< / p >
< / div >
2010-10-14 04:12:17 +00:00
< / div > <!-- /content -->
< / div > <!-- /page -->
< / body >
< / html >