sweet-alert-animations.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. /* ==========================================================================
  2. Variables
  3. ========================================================================== */
  4. @-webkit-keyframes showSweetAlert {
  5. 0% {
  6. transform: scale(0.7);
  7. -webkit-transform: scale(0.7);
  8. }
  9. 45% {
  10. transform: scale(1.05);
  11. -webkit-transform: scale(1.05);
  12. }
  13. 80% {
  14. -webkit-transform: scale(0.95);
  15. transform: scale(0.95);
  16. -webkit-tranform: scale(0.95);
  17. }
  18. 100% {
  19. transform: scale(1);
  20. -webkit-transform: scale(1);
  21. }
  22. }
  23. @keyframes showSweetAlert {
  24. 0% {
  25. transform: scale(0.7);
  26. -webkit-transform: scale(0.7);
  27. }
  28. 45% {
  29. transform: scale(1.05);
  30. -webkit-transform: scale(1.05);
  31. }
  32. 80% {
  33. -webkit-transform: scale(0.95);
  34. transform: scale(0.95);
  35. -webkit-tranform: scale(0.95);
  36. }
  37. 100% {
  38. transform: scale(1);
  39. -webkit-transform: scale(1);
  40. }
  41. }
  42. @-webkit-keyframes hideSweetAlert {
  43. 0% {
  44. transform: scale(1);
  45. -webkit-transform: scale(1);
  46. }
  47. 100% {
  48. transform: scale(0.5);
  49. -webkit-transform: scale(0.5);
  50. }
  51. }
  52. @keyframes hideSweetAlert {
  53. 0% {
  54. transform: scale(1);
  55. -webkit-transform: scale(1);
  56. }
  57. 100% {
  58. transform: scale(0.5);
  59. -webkit-transform: scale(0.5);
  60. }
  61. }
  62. .showSweetAlert {
  63. -webkit-animation: showSweetAlert 0.3s;
  64. animation: showSweetAlert 0.3s;
  65. }
  66. .hideSweetAlert {
  67. -webkit-animation: hideSweetAlert 0.2s;
  68. animation: hideSweetAlert 0.2s;
  69. }
  70. @-webkit-keyframes animateSuccessTip {
  71. 0% {
  72. width: 0;
  73. left: 1px;
  74. top: 19px;
  75. }
  76. 54% {
  77. width: 0;
  78. left: 1px;
  79. top: 19px;
  80. }
  81. 70% {
  82. width: 50px;
  83. left: -8px;
  84. top: 37px;
  85. }
  86. 84% {
  87. width: 17px;
  88. left: 21px;
  89. top: 48px;
  90. }
  91. 100% {
  92. width: 25px;
  93. left: 14px;
  94. top: 45px;
  95. }
  96. }
  97. @keyframes animateSuccessTip {
  98. 0% {
  99. width: 0;
  100. left: 1px;
  101. top: 19px;
  102. }
  103. 54% {
  104. width: 0;
  105. left: 1px;
  106. top: 19px;
  107. }
  108. 70% {
  109. width: 50px;
  110. left: -8px;
  111. top: 37px;
  112. }
  113. 84% {
  114. width: 17px;
  115. left: 21px;
  116. top: 48px;
  117. }
  118. 100% {
  119. width: 25px;
  120. left: 14px;
  121. top: 45px;
  122. }
  123. }
  124. @-webkit-keyframes animateSuccessLong {
  125. 0% {
  126. width: 0;
  127. right: 46px;
  128. top: 54px;
  129. }
  130. 65% {
  131. width: 0;
  132. right: 46px;
  133. top: 54px;
  134. }
  135. 84% {
  136. width: 55px;
  137. right: 0px;
  138. top: 35px;
  139. }
  140. 100% {
  141. width: 47px;
  142. right: 8px;
  143. top: 38px;
  144. }
  145. }
  146. @keyframes animateSuccessLong {
  147. 0% {
  148. width: 0;
  149. right: 46px;
  150. top: 54px;
  151. }
  152. 65% {
  153. width: 0;
  154. right: 46px;
  155. top: 54px;
  156. }
  157. 84% {
  158. width: 55px;
  159. right: 0px;
  160. top: 35px;
  161. }
  162. 100% {
  163. width: 47px;
  164. right: 8px;
  165. top: 38px;
  166. }
  167. }
  168. @-webkit-keyframes rotatePlaceholder {
  169. 0% {
  170. transform: rotate(-45deg);
  171. -webkit-transform: rotate(-45deg);
  172. }
  173. 5% {
  174. transform: rotate(-45deg);
  175. -webkit-transform: rotate(-45deg);
  176. }
  177. 12% {
  178. transform: rotate(-405deg);
  179. -webkit-transform: rotate(-405deg);
  180. }
  181. 100% {
  182. transform: rotate(-405deg);
  183. -webkit-transform: rotate(-405deg);
  184. }
  185. }
  186. @keyframes rotatePlaceholder {
  187. 0% {
  188. transform: rotate(-45deg);
  189. -webkit-transform: rotate(-45deg);
  190. }
  191. 5% {
  192. transform: rotate(-45deg);
  193. -webkit-transform: rotate(-45deg);
  194. }
  195. 12% {
  196. transform: rotate(-405deg);
  197. -webkit-transform: rotate(-405deg);
  198. }
  199. 100% {
  200. transform: rotate(-405deg);
  201. -webkit-transform: rotate(-405deg);
  202. }
  203. }
  204. .animateSuccessTip {
  205. -webkit-animation: animateSuccessTip 0.75s;
  206. animation: animateSuccessTip 0.75s;
  207. }
  208. .animateSuccessLong {
  209. -webkit-animation: animateSuccessLong 0.75s;
  210. animation: animateSuccessLong 0.75s;
  211. }
  212. .icon.success.animate::after {
  213. -webkit-animation: rotatePlaceholder 4.25s ease-in;
  214. animation: rotatePlaceholder 4.25s ease-in;
  215. }
  216. @-webkit-keyframes animateErrorIcon {
  217. 0% {
  218. transform: rotateX(100deg);
  219. -webkit-transform: rotateX(100deg);
  220. opacity: 0;
  221. }
  222. 100% {
  223. transform: rotateX(0deg);
  224. -webkit-transform: rotateX(0deg);
  225. opacity: 1;
  226. }
  227. }
  228. @keyframes animateErrorIcon {
  229. 0% {
  230. transform: rotateX(100deg);
  231. -webkit-transform: rotateX(100deg);
  232. opacity: 0;
  233. }
  234. 100% {
  235. transform: rotateX(0deg);
  236. -webkit-transform: rotateX(0deg);
  237. opacity: 1;
  238. }
  239. }
  240. .animateErrorIcon {
  241. -webkit-animation: animateErrorIcon 0.5s;
  242. animation: animateErrorIcon 0.5s;
  243. }
  244. @-webkit-keyframes animateXMark {
  245. 0% {
  246. transform: scale(0.4);
  247. -webkit-transform: scale(0.4);
  248. margin-top: 26px;
  249. opacity: 0;
  250. }
  251. 50% {
  252. transform: scale(0.4);
  253. -webkit-transform: scale(0.4);
  254. margin-top: 26px;
  255. opacity: 0;
  256. }
  257. 80% {
  258. transform: scale(1.15);
  259. -webkit-transform: scale(1.15);
  260. margin-top: -6px;
  261. }
  262. 100% {
  263. transform: scale(1);
  264. -webkit-transform: scale(1);
  265. margin-top: 0;
  266. opacity: 1;
  267. }
  268. }
  269. @keyframes animateXMark {
  270. 0% {
  271. transform: scale(0.4);
  272. -webkit-transform: scale(0.4);
  273. margin-top: 26px;
  274. opacity: 0;
  275. }
  276. 50% {
  277. transform: scale(0.4);
  278. -webkit-transform: scale(0.4);
  279. margin-top: 26px;
  280. opacity: 0;
  281. }
  282. 80% {
  283. transform: scale(1.15);
  284. -webkit-transform: scale(1.15);
  285. margin-top: -6px;
  286. }
  287. 100% {
  288. transform: scale(1);
  289. -webkit-transform: scale(1);
  290. margin-top: 0;
  291. opacity: 1;
  292. }
  293. }
  294. .animateXMark {
  295. -webkit-animation: animateXMark 0.5s;
  296. animation: animateXMark 0.5s;
  297. }
  298. @-webkit-keyframes pulseWarning {
  299. 0% {
  300. border-color: rgba(242, 152, 36, 0.5);
  301. }
  302. 100% {
  303. border-color: #f29824;
  304. }
  305. }
  306. @keyframes pulseWarning {
  307. 0% {
  308. border-color: rgba(242, 152, 36, 0.5);
  309. }
  310. 100% {
  311. border-color: #f29824;
  312. }
  313. }
  314. .pulseWarning {
  315. -webkit-animation: pulseWarning 0.75s infinite alternate;
  316. animation: pulseWarning 0.75s infinite alternate;
  317. }
  318. @-webkit-keyframes pulseWarningIns {
  319. 0% {
  320. background-color: rgba(242, 152, 36, 0.5);
  321. }
  322. 100% {
  323. background-color: #f29824;
  324. }
  325. }
  326. @keyframes pulseWarningIns {
  327. 0% {
  328. background-color: rgba(242, 152, 36, 0.5);
  329. }
  330. 100% {
  331. background-color: #f29824;
  332. }
  333. }
  334. .pulseWarningIns {
  335. -webkit-animation: pulseWarningIns 0.75s infinite alternate;
  336. animation: pulseWarningIns 0.75s infinite alternate;
  337. }