Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. <div id="status-placeholder"></div>
  2. <?php echo do_shortcode('[contact-form-7 id="2441" title="Collaborator Info Form"]');?>
  3. </div>
  4.  
  5. jQuery(document).ready(function($) {
  6. var placeholder=$('#status-placeholder');
  7. jQuery('<div id="status"></div>').insertBefore(placeholder);
  8. var statusdiv=$('#status');
  9.  
  10. $('body').on('click', '.submit', function() {
  11. statusdiv.html('<div class="wrap go"><div class="loader bar"><div class="sfmgreen"></div><div class="dkblue"></div><div class="ltblue"></div><div class="aqua"></div></div>')
  12.  
  13. .aqua { background-color: #13EBC7 }
  14. .ltblue { background-color: #50AEED }
  15. .dkblue { background-color: #33447A }
  16. .sfmgreen { background-color: #16A085 }
  17. .wrap {
  18. margin: 0 auto;
  19. padding: 0px;
  20. line-height: 6rem;
  21. text-align: center;
  22. display: block;
  23. position: relative;
  24. }
  25. .loader {
  26. position: absolute;
  27. margin: 0 auto 0 auto;
  28. overflow: hidden;
  29. }
  30. .loader > div {
  31. position: absolute;
  32. top: 0; left: 0;
  33. height: 100%;
  34. width: 100%;
  35. }
  36.  
  37. /* BAR */
  38. .bar {
  39. width: 100%;
  40. height: .5rem;
  41. display: block;
  42. position: relative;
  43. }
  44.  
  45. .go .loader.bar > div{
  46. animation: loading-bar 2s infinite backwards ease-out;
  47. -webkit-animation: loading-bar 2s infinite backwards ease-out;
  48. }
  49. .bar > div {
  50. transform: scaleX(1);
  51. -webkit-transform: scaleX(1);
  52. }
  53. .loader.bar div:nth-child(1) {
  54. animation-delay: -1.5s;
  55. -webkit-animation-delay: -1.5s;
  56. }
  57. .loader.bar div:nth-child(2) {
  58. animation-delay: -1s;
  59. -webkit-animation-delay: -1s;
  60. }
  61. .loader.bar div:nth-child(3) {
  62. animation-delay: -.5s;
  63. -webkit-animation-delay: -.5s;
  64. }
  65. .loader.bar div:nth-child(4) {
  66. animation-delay: 0s;
  67. -webkit-animation-delay: 0s;
  68. }
  69.  
  70. @keyframes loading-bar{
  71. 0% {
  72. transform: scaleX(0);
  73. -webkit-transform: scaleX(0);
  74. z-index: 15;
  75. }
  76. 22% {
  77. transform: scaleX(0);
  78. -webkit-transform: scaleX(0);
  79. z-index: 15;
  80. }
  81. 50% {
  82. transform: scaleX(1);
  83. -webkit-transform: scaleX(1);
  84. }
  85. 90% {
  86. transform: scaleX(1);
  87. -webkit-transform: scaleX(1);
  88. z-index: 1;
  89. }
  90. 100% {
  91. transform: scaleX(1);
  92. -webkit-transform: scaleX(1);
  93. z-index: 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement