transitions.css 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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. transform: rotate(360deg);
  8. animation-name: spin;
  9. animation-duration: 1s;
  10. animation-iteration-count: infinite;
  11. }
  12. @keyframes spin {
  13. from {transform: rotate(0deg);}
  14. to {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. transform: translate3d(0,0,0);
  22. animation-name: slideinfromright;
  23. z-index: 10;
  24. }
  25. .slide.out {
  26. transform: translate3d(-100%,0,0);
  27. animation-name: slideouttoleft;
  28. z-index: 0;
  29. }
  30. .slide.in.reverse {
  31. transform: translate3d(0,0,0);
  32. animation-name: slideinfromleft;
  33. z-index: 0;
  34. }
  35. .slide.out.reverse {
  36. transform: translate3d(100%,0,0);
  37. animation-name: slideouttoright;
  38. z-index: 10;
  39. }
  40. .slideup.in {
  41. transform: translate3d(0,0,0);
  42. animation-name: slideinfrombottom;
  43. z-index: 10;
  44. }
  45. .slideup.out {
  46. animation-name: dontmove;
  47. z-index: 0;
  48. }
  49. .slideup.out.reverse {
  50. transform: translate3d(0,100%,0);
  51. animation-name: slideouttobottom;
  52. z-index: 10;
  53. }
  54. .slideup.in.reverse {
  55. animation-name: dontmove;
  56. z-index: 0;
  57. }
  58. .slidedown.in {
  59. transform: translate3d(0,0,0);
  60. animation-name: slideinfromtop;
  61. z-index: 10;
  62. }
  63. .slidedown.out {
  64. animation-name: dontmove;
  65. z-index: 0;
  66. }
  67. .slidedown.out.reverse {
  68. transform: translate3d(0,-100%,0);
  69. animation-name: slideouttotop;
  70. z-index: 10;
  71. }
  72. .slidedown.in.reverse {
  73. animation-name: dontmove;
  74. z-index: 0;
  75. }
  76. @keyframes slideinfromright {
  77. from { transform: translate3d(100%,0,0); }
  78. to { transform: translate3d(0,0,0); }
  79. }
  80. @keyframes slideinfromleft {
  81. from { transform: translate3d(-100%,0,0); }
  82. to { transform: translate3d(0,0,0); }
  83. }
  84. @keyframes slideouttoleft {
  85. from { transform: translate3d(0,0,0); }
  86. to { transform: translate3d(-100%,0,0); }
  87. }
  88. @keyframes slideouttoright {
  89. from { transform: translate3d(0,0,0); }
  90. to { transform: translate3d(100%,0,0); }
  91. }
  92. @keyframes slideinfromtop {
  93. from { transform: translate3d(0,-100%,); }
  94. to { transform: translate3d(0,0,0); }
  95. }
  96. @keyframes slideinfrombottom {
  97. from { transform: translate3d(0,100%,0); }
  98. to { transform: translate3d(0,0,0); }
  99. }
  100. @keyframes slideouttobottom {
  101. from { transform: translate3d(0,0,0); }
  102. to { transform: translate3d(0,100%,0); }
  103. }
  104. @keyframes slideouttotop {
  105. from { transform: translate3d(0,0,0); }
  106. to { transform: translate3d(0,-100%,0); }
  107. }
  108. @keyframes fadein {
  109. from { opacity: 0; }
  110. to { opacity: 1; }
  111. }
  112. @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. animation-name: fadein;
  135. }
  136. .fade.out {
  137. 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. 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. animation-duration: .65s;
  173. backface-visibility:hidden;
  174. transform:translate3d(0,0,0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when visibility:hidden is used. */
  175. }
  176. .flip.in {
  177. transform: rotateY(0) scale(1);
  178. animation-name: flipinfromleft;
  179. z-index: 10;
  180. }
  181. .flip.out {
  182. transform: rotateY(-180deg) scale(.8);
  183. animation-name: flipouttoleft;
  184. z-index: 0;
  185. }
  186. /* Shake it all about */
  187. .flip.in.reverse {
  188. transform: rotateY(0) scale(1);
  189. animation-name: flipinfromright;
  190. z-index: 0;
  191. }
  192. .flip.out.reverse {
  193. transform: rotateY(180deg) scale(.8);
  194. animation-name: flipouttoright;
  195. z-index: 10;
  196. }
  197. @keyframes flipinfromright {
  198. from { transform: rotateY(-180deg) scale(.8); }
  199. to { transform: rotateY(0) scale(1); }
  200. }
  201. @keyframes flipinfromleft {
  202. from { transform: rotateY(180deg) scale(.8); }
  203. to { transform: rotateY(0) scale(1); }
  204. }
  205. @keyframes flipouttoleft {
  206. from { transform: rotateY(0) scale(1); }
  207. to { transform: rotateY(-180deg) scale(.8); }
  208. }
  209. @keyframes flipouttoright {
  210. from { transform: rotateY(0) scale(1); }
  211. to { transform: rotateY(180deg) scale(.8); }
  212. }
  213. /* Hackish, but reliable. */
  214. @keyframes dontmove {
  215. from { opacity: 1; }
  216. to { opacity: 1; }
  217. }
  218. .pop {
  219. transform-origin: 50% 50%;
  220. }
  221. .pop.in {
  222. transform: scale(1);
  223. animation-name: popin;
  224. z-index: 10;
  225. }
  226. .pop.out.reverse {
  227. transform: scale(.2);
  228. animation-name: popout;
  229. z-index: 10;
  230. }
  231. .pop.in.reverse {
  232. animation-name: dontmove;
  233. z-index: 0;
  234. }
  235. @keyframes popin {
  236. from {
  237. transform: scale(.2);
  238. }
  239. to {
  240. transform: scale(1);
  241. }
  242. }
  243. @keyframes popout {
  244. from {
  245. transform: scale(1);
  246. }
  247. to {
  248. transform: scale(.2);
  249. }
  250. }
  251. .slide.in.fade {
  252. animation-name: slideinfromright, fadein;
  253. z-index: 10;
  254. }
  255. .slide.out.fade {
  256. animation-name: slideinfromright, fadeout;
  257. z-index: 0;
  258. }
  259. .pop.fade.in {
  260. animation-name: popin, fadein;
  261. z-index: 10;
  262. }
  263. .pop.fade.out {
  264. animation-name: popout, fadeout;
  265. z-index: 0;
  266. }