|
22 | 22 | <div class="loader"></div> |
23 | 23 | </div> |
24 | 24 | </div> |
| 25 | + |
25 | 26 | <style> |
26 | 27 | #preloader { |
27 | 28 | position: fixed; |
|
35 | 36 | align-items: center; |
36 | 37 | z-index: 9999; |
37 | 38 | } |
38 | | - |
39 | | - /* Loader and Logo Wrapper */ |
| 39 | + |
| 40 | + /* Wrapper */ |
40 | 41 | .loader-wrapper { |
41 | 42 | position: relative; |
42 | 43 | display: flex; |
43 | 44 | justify-content: center; |
44 | 45 | align-items: center; |
45 | 46 | } |
46 | | - |
47 | | - /* Logo styling */ |
| 47 | + |
| 48 | + /* Logo */ |
48 | 49 | .logo { |
49 | | - width: 100px; |
50 | | - /* Adjust the size to your preference */ |
| 50 | + width: 100px; /* Size */ |
51 | 51 | height: auto; |
52 | | - z-index: 2; |
53 | | - /* Ensure the logo appears above the spinner */ |
| 52 | + z-index: 2; /* Above */ |
54 | 53 | animation: fadeIn 2s ease forwards; |
55 | 54 | } |
56 | | - |
57 | | - /* Fixed Diamond-shaped spinner with rotating color */ |
| 55 | + |
| 56 | + /* Spinner */ |
58 | 57 | .loader { |
59 | 58 | width: 120px; |
60 | 59 | height: 120px; |
61 | 60 | background-color: transparent; |
62 | 61 | border: 10px solid transparent; |
63 | | - /* Transparent border for all sides */ |
64 | | - border-top: 10px solid #b0b0b0; |
65 | | - /* Lighter gray border */ |
66 | | - border-right: 10px solid #404040; |
67 | | - /* Darker gray (black) border */ |
| 62 | + border-top: 10px solid #b0b0b0; /* Light */ |
| 63 | + border-right: 10px solid #404040; /* Dark */ |
68 | 64 | border-radius: 10px; |
69 | 65 | position: absolute; |
70 | | - transform: rotate(45deg); |
71 | | - /* Rotate the square to create a diamond shape */ |
72 | | - animation: spinColor 1.5s linear infinite; |
73 | | - /* Only color will spin */ |
74 | | - box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); |
75 | | - /* Subtle shadow for depth */ |
| 66 | + transform: rotate(45deg); /* Diamond */ |
| 67 | + animation: spinColor 1.5s linear infinite; /* Spin */ |
| 68 | + box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); /* Shadow */ |
76 | 69 | } |
77 | | - /* @media(max-width: 500px){ |
78 | | - .ways-content h1{ |
79 | | - font-size: 0.5rem !important; |
| 70 | + |
| 71 | + /* Fade */ |
| 72 | + @keyframes fadeIn { |
| 73 | + 0% { |
| 74 | + opacity: 0; |
| 75 | + transform: translateY(-20px); |
80 | 76 | } |
81 | | - .footer-section{ |
82 | | - margin: 0 !important; |
| 77 | + 100% { |
| 78 | + opacity: 1; |
| 79 | + transform: translateY(0); |
83 | 80 | } |
84 | | - } */ |
85 | | - |
86 | | - |
| 81 | + } |
| 82 | + |
| 83 | + /* Spin Color */ |
| 84 | + @keyframes spinColor { |
| 85 | + 0% { |
| 86 | + border-top-color: #b0b0b0; |
| 87 | + border-right-color: #404040; |
| 88 | + } |
| 89 | + 50% { |
| 90 | + border-top-color: #404040; |
| 91 | + border-right-color: #b0b0b0; |
| 92 | + } |
| 93 | + 100% { |
| 94 | + border-top-color: #b0b0b0; |
| 95 | + border-right-color: #404040; |
| 96 | + } |
| 97 | + } |
| 98 | + </style> |
| 99 | + |
| 100 | + <script> |
| 101 | + // Load |
| 102 | + window.addEventListener('load', function () { |
| 103 | + // Timeout |
| 104 | + setTimeout(function () { |
| 105 | + document.getElementById('preloader').style.display = 'none'; |
| 106 | + }, 2000); // 2 seconds |
| 107 | + }); |
| 108 | + </script> |
| 109 | + |
87 | 110 | <div id="progressBarContainer"> |
88 | 111 | <div id="progressBar"></div> |
89 | 112 | </div> |
|
0 commit comments