loading.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <style>
  8. html,body{
  9. margin: 0;
  10. padding: 0;
  11. width: 100vw;
  12. height: 100vh;
  13. display: flex;
  14. justify-content: center;
  15. align-items: center;
  16. box-sizing: border-box;
  17. overflow: hidden;
  18. margin-bottom: 10%;
  19. }
  20. .loader {
  21. border: 5px solid #f3f3f3;
  22. border-radius: 50%;
  23. border-top: 5px solid #3498db;
  24. width: 30px;
  25. height: 30px;
  26. -webkit-animation: spin 2s linear infinite;
  27. animation: spin 2s linear infinite;
  28. margin: auto auto;
  29. }
  30. @-webkit-keyframes spin {
  31. 0% {
  32. -webkit-transform: rotate(0deg);
  33. }
  34. 100% {
  35. -webkit-transform: rotate(360deg);
  36. }
  37. }
  38. @keyframes spin {
  39. 0% {
  40. transform: rotate(0deg);
  41. }
  42. 100% {
  43. transform: rotate(360deg);
  44. }
  45. }
  46. </style>
  47. </head>
  48. <body>
  49. <div class="loader"></div>
  50. </body>
  51. </html>