You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.2 KiB

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //
  2. // Page Loader
  3. // --------------------------------------------------
  4. #page-loader {
  5. position: fixed;
  6. top: 0;
  7. right: 0;
  8. bottom: 0;
  9. left: 0;
  10. background-color: $primary;
  11. z-index: 999998;
  12. transform: translateY(-100%);
  13. &.show {
  14. transform: translateY(0);
  15. }
  16. &::after,
  17. &::before {
  18. position: absolute;
  19. top: 50%;
  20. left: 50%;
  21. display: block;
  22. border-radius: 100%;
  23. content: '';
  24. z-index: 999999;
  25. }
  26. &::after {
  27. margin-top: -160px;
  28. margin-left: -160px;
  29. width: 320px;
  30. height: 320px;
  31. background-color: rgba($white, .5);
  32. border: 4px solid rgba($white, .75);
  33. box-shadow: 0 0 100px rgba($black, .15);
  34. animation: page-loader-inner 1.25s infinite ease-out;
  35. }
  36. &::before {
  37. margin-top: -40px;
  38. margin-left: -40px;
  39. width: 80px;
  40. height: 80px;
  41. background-color: rgba($white, 1);
  42. animation: page-loader-outer 1.25s infinite ease-in;
  43. }
  44. }
  45. @keyframes page-loader-inner {
  46. 0%, 40% {
  47. transform: scale(0);
  48. }
  49. 100% {
  50. transform: scale(1);
  51. opacity: 0;
  52. }
  53. }
  54. @keyframes page-loader-outer {
  55. 0% {
  56. transform: scale(1);
  57. }
  58. 40%, 100% {
  59. transform: scale(0);
  60. opacity: 0;
  61. }
  62. }