diff --git a/3D Earth/index.html b/3D Earth/index.html index 353da9e6..ccbdd8ec 100644 --- a/3D Earth/index.html +++ b/3D Earth/index.html @@ -20,8 +20,6 @@ width: 300px; height: 300px; position: relative; - transform-style: preserve-3d; - animation: rotate 20s linear infinite; } .globe { @@ -31,37 +29,26 @@ position: absolute; transform-style: preserve-3d; background: url('https://eoimages.gsfc.nasa.gov/images/imagerecords/57000/57735/land_ocean_ice_cloud_2048.jpg'); - background-size: cover; - overflow: hidden; - } - - .globe::before { - content: ''; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - border-radius: 50%; - background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.6) 70%); - animation: dayNightCycle 20s linear infinite; + background-size: 200% 150%; + animation: spin 20s linear infinite; + box-shadow: + inset 30px 0 80px rgba(0, 0, 0, 0.8), + inset -30px 0 40px rgba(255, 255, 255, 0.2), + 0 0 40px rgba(168, 219, 255, 0.4); } .globe::after { - content: ''; + content: ""; position: absolute; - width: 100%; - height: 100%; + inset: 0; border-radius: 50%; - background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.1), rgba(0,0,0,0.6)); + background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), rgba(0,0,0,0.7) 70%); mix-blend-mode: overlay; - opacity: 0.5; - animation: shadowMovement 20s linear infinite; } - @keyframes rotate { - 0% { transform: rotateY(0deg); } - 100% { transform: rotateY(360deg); } + @keyframes spin { + 0% { background-position: 0 0; } + 100% { background-position: -200% 0; } } @keyframes dayNightCycle { diff --git a/Animated Loading Page/loading_page.html b/Animated Loading Page/loading_page.html index abb8721d..7b556bf9 100644 --- a/Animated Loading Page/loading_page.html +++ b/Animated Loading Page/loading_page.html @@ -8,9 +8,10 @@
-
-

LOADING

-
+
+
+

LOADING

+
\ No newline at end of file diff --git a/Animated Loading Page/style.css b/Animated Loading Page/style.css index 7e0ea144..c4b33332 100644 --- a/Animated Loading Page/style.css +++ b/Animated Loading Page/style.css @@ -1,51 +1,96 @@ -*{ +* { margin: 0; padding: 0; + box-sizing: border-box; } -.container{ + +body, html { + height: 100%; + width: 100%; + overflow: hidden; + font-family: 'Georgia', sans-serif; +} + +.container { display: flex; - flex-direction: column; justify-content: center; align-items: center; height: 100vh; width: 100vw; + background: linear-gradient(#ade8f4, #90e0ef); + overflow: hidden; } -.loading-page{ +.loading-page { display: flex; - position: absolute; + flex-direction: column; align-items: center; justify-content: center; - background-color: greenyellow; - height: 100vh; - width: 100vw; - z-index: 10; + text-align: center; + gap: 30px; +} + +.spinner { + width: 80px; + height: 80px; + border-radius: 50%; + border: 4px dashed rgba(0, 131, 212); + border-top-color: rgba(0, 131, 212); + animation: spin 10s linear infinite; + margin-bottom: 30px; + position: relative; } -.loading-page h1::after{ +@keyframes spin { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } +} + +.loading-page h1 { + font-size: 70px; + color: rgba(0, 131, 212, 0.7); +} + +.loading-page h1::after { content: ""; - color: darkgreen; - animation: 2s loadingAnim ease-out infinite; + animation: loadingAnim 2s steps(4) infinite; + position: absolute; } @keyframes loadingAnim { - 0%{ - content: ""; - } - - 33%{ - content: "."; - } - 66%{ - content: ".."; - } - 100%{ - content: "..."; - } -} - -.loading-page h1{ - font-size: 80px; - color: rgba(0, 0, 0, 0.6); - font-style: oblique; + 0% { content: ""; } + 25% { content: "."; } + 50% { content: ".."; } + 75% { content: "..."; } + 100% { content: ""; } +} + +.container::before, +.container::after { + content: ""; + position: absolute; + width: 400px; + height: 400px; + border-radius: 50%; + filter: blur(100px); + animation: float 6s ease-in-out infinite alternate; + z-index: 0; +} + +.container::before { + background: #48cae4; + top: -100px; + left: -100px; +} + +.container::after { + background: #48cae4; + bottom: -100px; + right: -100px; + animation-delay: 3s; +} + +@keyframes float { + 0% { transform: translate(0, 0); } + 100% { transform: translate(30px, -30px); } } \ No newline at end of file