moz-transitions.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. /*
  2. * jQuery Mobile Framework
  3. * Copyright (c) jQuery Project
  4. * Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
  5. */
  6. .spin {
  7. -moz-transform: rotate(360deg);
  8. -moz-animation-name: spin;
  9. -moz-animation-duration: 1s;
  10. -moz-animation-iteration-count: infinite;
  11. }
  12. @-moz-keyframes spin {
  13. from {-moz-transform: rotate(0deg);}
  14. to {-moz-transform: rotate(360deg);}
  15. }
  16. /*
  17. Transitions from jQtouch (with small modifications): http://www.jqtouch.com/
  18. Built by David Kaneda and maintained by Jonathan Stark.
  19. */
  20. .slide.in {
  21. -moz-transform: translate(0,0);
  22. -moz-animation-name: slideinfromright;
  23. z-index: 10;
  24. }
  25. .slide.out {
  26. -moz-transform: translate(-100%,0);
  27. -moz-animation-name: slideouttoleft;
  28. z-index: 0;
  29. }
  30. .slide.in.reverse {
  31. -moz-transform: translate(0,0);
  32. -moz-animation-name: slideinfromleft;
  33. z-index: 0;
  34. }
  35. .slide.out.reverse {
  36. -moz-transform: translate(100%,0);
  37. -moz-animation-name: slideouttoright;
  38. z-index: 10;
  39. }
  40. .slideup.in {
  41. -moz-transform: translate(0,0);
  42. -moz-animation-name: slideinfrombottom;
  43. z-index: 10;
  44. }
  45. .slideup.out {
  46. -moz-animation-name: dontmove;
  47. z-index: 0;
  48. }
  49. .slideup.out.reverse {
  50. -moz-transform: translate(0,100%);
  51. -moz-animation-name: slideouttobottom;
  52. z-index: 10;
  53. }
  54. .slideup.in.reverse {
  55. -moz-animation-name: dontmove;
  56. z-index: 0;
  57. }
  58. .slidedown.in {
  59. -moz-transform: translate(0,0);
  60. -moz-animation-name: slideinfromtop;
  61. z-index: 10;
  62. }
  63. .slidedown.out {
  64. -moz-animation-name: dontmove;
  65. z-index: 0;
  66. }
  67. .slidedown.out.reverse {
  68. -moz-transform: translate(0,-100%);
  69. -moz-animation-name: slideouttotop;
  70. z-index: 10;
  71. }
  72. .slidedown.in.reverse {
  73. -moz-animation-name: dontmove;
  74. z-index: 0;
  75. }
  76. @-moz-keyframes slideinfromright {
  77. from { -moz-transform: translate(100%,0); }
  78. to { -moz-transform: translate(0,0); }
  79. }
  80. @-moz-keyframes slideinfromleft {
  81. from { -moz-transform: translate(-100%,0); }
  82. to { -moz-transform: translate(0,0); }
  83. }
  84. @-moz-keyframes slideouttoleft {
  85. from { -moz-transform: translate(0,0); }
  86. to { -moz-transform: translate(-100%,0); }
  87. }
  88. @-moz-keyframes slideouttoright {
  89. from { -moz-transform: translate(0,0); }
  90. to { -moz-transform: translate(100%,0); }
  91. }
  92. @-moz-keyframes slideinfromtop {
  93. from { -moz-transform: translate(0,-100%); }
  94. to { -moz-transform: translate(0,0); }
  95. }
  96. @-moz-keyframes slideinfrombottom {
  97. from { -moz-transform: translate(0,100%); }
  98. to { -moz-transform: translate(0,0); }
  99. }
  100. @-moz-keyframes slideouttobottom {
  101. from { -moz-transform: translate(0,0); }
  102. to { -moz-transform: translate(0,100%); }
  103. }
  104. @-moz-keyframes slideouttotop {
  105. from { -moz-transform: translate(0,0); }
  106. to { -moz-transform: translate(0,-100%); }
  107. }
  108. @-moz-keyframes fadein {
  109. from { opacity: 0; }
  110. to { opacity: 1; }
  111. }
  112. @-moz-keyframes fadeout {
  113. from { opacity: 1; }
  114. to { opacity: 0; }
  115. }
  116. @keyframes halffadein {
  117. from { opacity: 0; }
  118. to { opacity: 0.5; }
  119. }
  120. @keyframes halffadeout {
  121. from { opacity: 0.5; }
  122. to { opacity: 0; }
  123. }
  124. @keyframes bootstrap2fadein {
  125. from { opacity: 0; }
  126. to { opacity: 0.8; }
  127. }
  128. @keyframes bootstrap2fadeout {
  129. from { opacity: 0.8; }
  130. to { opacity: 0; }
  131. }
  132. .fade.in {
  133. opacity: 1;
  134. -moz-animation-name: fadein;
  135. }
  136. .fade.out {
  137. -moz-animation-name: fadeout;
  138. }
  139. .Wt-dialogcover.fade.in,
  140. .modal-backdrop.fade.in {
  141. opacity: 0.5;
  142. animation-name: halffadein;
  143. }
  144. .Wt-dialogcover.fade.out,
  145. .modal-backdrop.fade.out {
  146. animation-name: halffadeout;
  147. }
  148. .modal-backdrop.Wt-bootstrap2.fade.in {
  149. opacity: 0.8;
  150. animation-name: bootstrap2fadein;
  151. }
  152. .modal-backdrop.Wt-bootstrap2.fade.out {
  153. animation-name: bootstrap2fadeout;
  154. }
  155. /* The properties in this body rule are only necessary for the 'flip' transition.
  156. * We need specify the perspective to create a projection matrix. This will add
  157. * some depth as the element flips. The depth number represents the distance of
  158. * the viewer from the z-plane. According to the CSS3 spec, 1000 is a moderate
  159. * value.
  160. */
  161. .ui-mobile-viewport-perspective {
  162. -moz-perspective: 1000;
  163. position: absolute;
  164. }
  165. .ui-mobile-viewport-transitioning,
  166. .ui-mobile-viewport-transitioning .ui-page {
  167. width: 100%;
  168. height: 100%;
  169. overflow: hidden;
  170. }
  171. .flip {
  172. -moz-animation-duration: .65s;
  173. -moz-backface-visibility:hidden;
  174. }
  175. .flip.in {
  176. -moz-transform: rotateY(0) scale(1);
  177. -moz-animation-name: flipinfromleft;
  178. z-index: 10;
  179. }
  180. .flip.out {
  181. -moz-transform: rotateY(-180deg) scale(.8);
  182. -moz-animation-name: flipouttoleft;
  183. z-index: 0;
  184. }
  185. /* Shake it all about */
  186. .flip.in.reverse {
  187. -moz-transform: rotateY(0) scale(1);
  188. -moz-animation-name: flipinfromright;
  189. z-index: 0;
  190. }
  191. .flip.out.reverse {
  192. -moz-transform: rotateY(180deg) scale(.8);
  193. -moz-animation-name: flipouttoright;
  194. z-index: 10;
  195. }
  196. @-moz-keyframes flipinfromright {
  197. from { -moz-transform: rotateY(-180deg) scale(.8); }
  198. to { -moz-transform: rotateY(0) scale(1); }
  199. }
  200. @-moz-keyframes flipinfromleft {
  201. from { -moz-transform: rotateY(180deg) scale(.8); }
  202. to { -moz-transform: rotateY(0) scale(1); }
  203. }
  204. @-moz-keyframes flipouttoleft {
  205. from { -moz-transform: rotateY(0) scale(1); }
  206. to { -moz-transform: rotateY(-180deg) scale(.8); }
  207. }
  208. @-moz-keyframes flipouttoright {
  209. from { -moz-transform: rotateY(0) scale(1); }
  210. to { -moz-transform: rotateY(180deg) scale(.8); }
  211. }
  212. /* Hackish, but reliable. */
  213. @-moz-keyframes dontmove {
  214. from { opacity: 1; }
  215. to { opacity: 1; }
  216. }
  217. .pop {
  218. -moz-transform-origin: 50% 50%;
  219. }
  220. .pop.in {
  221. -moz-transform: scale(1);
  222. -moz-animation-name: popin;
  223. z-index: 10;
  224. }
  225. .pop.out.reverse {
  226. -moz-transform: scale(.2);
  227. -moz-animation-name: popout;
  228. z-index: 10;
  229. }
  230. .pop.in.reverse {
  231. -moz-animation-name: dontmove;
  232. z-index: 0;
  233. }
  234. @-moz-keyframes popin {
  235. from {
  236. -moz-transform: scale(.2);
  237. }
  238. to {
  239. -moz-transform: scale(1);
  240. }
  241. }
  242. @-moz-keyframes popout {
  243. from {
  244. -moz-transform: scale(1);
  245. }
  246. to {
  247. -moz-transform: scale(.2);
  248. }
  249. }
  250. .slide.in.fade {
  251. -moz-animation-name: slideinfromright, fadein;
  252. z-index: 10;
  253. }
  254. .slide.out.fade {
  255. -moz-animation-name: slideinfromright, fadeout;
  256. z-index: 0;
  257. }
  258. .pop.fade.in {
  259. -moz-animation-name: popin, fadein;
  260. z-index: 10;
  261. }
  262. .pop.fade.out {
  263. -moz-animation-name: popout, fadeout;
  264. z-index: 0;
  265. }