diff --git a/auto-text-effect/index.html b/auto-text-effect/index.html index 3fb9ade..af1fd04 100644 --- a/auto-text-effect/index.html +++ b/auto-text-effect/index.html @@ -1,19 +1,22 @@ - - - - - Auto Text Effect - - -

Starting...

-
- - -
+ + + + + Auto Text Effect + - - - + +

Starting...

+ +
+ + +
+ + + + + \ No newline at end of file diff --git a/auto-text-effect/script.js b/auto-text-effect/script.js index c302628..1d1158f 100644 --- a/auto-text-effect/script.js +++ b/auto-text-effect/script.js @@ -1,22 +1,21 @@ -const textEl = document.getElementById('text') -const speedEl = document.getElementById('speed') -const text = 'We Love Programming!' -let idx = 1 -let speed = 300 / speedEl.value +const textEl = document.getElementById('text'); +const speedEl = document.getElementById('speed'); +const text = 'xAI is an AI company with the mission of advancing scientific discovery and gaining a deeper understanding of our universe.'; +let idx = 1; +let speed = 300 / speedEl.value; -writeText() +writeText(); function writeText() { - textEl.innerText = text.slice(0, idx) + textEl.innerText = text.slice(0, idx); - idx++ + idx++; if(idx > text.length) { - idx = 1 + idx = 1; } - setTimeout(writeText, speed) + setTimeout(writeText, speed); } - -speedEl.addEventListener('input', (e) => speed = 300 / e.target.value) \ No newline at end of file +speedEl.addEventListener('input', (e) => speed = 300 / e.target.value); \ No newline at end of file diff --git a/auto-text-effect/style.css b/auto-text-effect/style.css index 71fae02..cc41547 100644 --- a/auto-text-effect/style.css +++ b/auto-text-effect/style.css @@ -5,7 +5,7 @@ } body { - background-color: darksalmon; + background-color: rgb(234, 255, 217); font-family: 'Roboto', sans-serif; display: flex; flex-direction: column; @@ -13,13 +13,19 @@ body { justify-content: center; height: 100vh; overflow: hidden; - margin: 0; + width: 80vw; + margin: auto; +} + + +#text { + text-align: center; } div { position: absolute; bottom: 20px; - background: rgba(0, 0, 0, 0.1); + background: rgba(9, 105, 31, 0.1); padding: 10px 20px; font-size: 18px; } @@ -28,11 +34,11 @@ input { width: 50px; padding: 5px; font-size: 18px; - background-color: darksalmon; + background-color: rgb(172, 234, 201); border: none; text-align: center; } input:focus { outline: none; -} +} \ No newline at end of file diff --git a/expanding-cards/index.html b/expanding-cards/index.html index 164951d..a0c0c0e 100644 --- a/expanding-cards/index.html +++ b/expanding-cards/index.html @@ -1,31 +1,39 @@ - - - - - Expanding Cards - - -
-
-

Explore The World

-
-
-

Wild Forest

-
-
-

Sunny Beach

-
-
-

City on Winter

-
-
-

Mountains - Clouds

-
+ + + + + Expanding Cards + + + +
+
+

Explore The World

+
+
+

Wild Forest

+
+
+

Sunny Beach

+
+
+

City on Winter

+
+

Mountains - Clouds

+
+ +
+ + + - - - + \ No newline at end of file diff --git a/expanding-cards/script.js b/expanding-cards/script.js index 68d6b5c..333d838 100644 --- a/expanding-cards/script.js +++ b/expanding-cards/script.js @@ -2,13 +2,13 @@ const panels = document.querySelectorAll('.panel') panels.forEach(panel => { panel.addEventListener('click', () => { - removeActiveClasses() - panel.classList.add('active') + removeActiveClasses(); + panel.classList.add('active'); }) }) function removeActiveClasses() { panels.forEach(panel => { - panel.classList.remove('active') + panel.classList.remove('active'); }) } \ No newline at end of file diff --git a/expanding-cards/style.css b/expanding-cards/style.css index a6fe024..99d0db8 100644 --- a/expanding-cards/style.css +++ b/expanding-cards/style.css @@ -10,6 +10,7 @@ body { align-items: center; justify-content: center; height: 100vh; + /* width is 100vw by default*/ overflow: hidden; margin: 0; } @@ -25,19 +26,19 @@ body { background-repeat: no-repeat; height: 80vh; border-radius: 50px; - color: #fff; + color: #ffffff; cursor: pointer; flex: 0.5; margin: 10px; position: relative; - -webkit-transition: all 700ms ease-in; + transition: all 700ms ease-in; } .panel h3 { font-size: 24px; position: absolute; - bottom: 20px; - left: 20px; + bottom: 30px; + left: 30px; margin: 0; opacity: 0; } @@ -60,4 +61,4 @@ body { .panel:nth-of-type(5) { display: none; } -} +} \ No newline at end of file diff --git a/progress-steps/index.html b/progress-steps/index.html index 8672c0c..6f1edce 100644 --- a/progress-steps/index.html +++ b/progress-steps/index.html @@ -1,24 +1,27 @@ - - - - - Progress Steps - - -
-
-
-
1
-
2
-
3
-
4
-
- - + + + + + Progress Steps + + + +
+
+
+
1
+
2
+
3
+
4
- - - + + + +
+ + + + \ No newline at end of file diff --git a/progress-steps/script.js b/progress-steps/script.js index 58067d4..05d0924 100644 --- a/progress-steps/script.js +++ b/progress-steps/script.js @@ -1,49 +1,44 @@ -const progress = document.getElementById('progress') -const prev = document.getElementById('prev') -const next = document.getElementById('next') -const circles = document.querySelectorAll('.circle') +const progress = document.getElementById('progress'); +const prev = document.getElementById('prev'); +const next = document.getElementById('next'); +const circles = document.querySelectorAll('.circle'); -let currentActive = 1 +let currentActive = 1; next.addEventListener('click', () => { - currentActive++ - - if(currentActive > circles.length) { - currentActive = circles.length + currentActive++; + if (currentActive > circles.length) { + currentActive = circles.length; } - - update() + update(); }) prev.addEventListener('click', () => { - currentActive-- - - if(currentActive < 1) { - currentActive = 1 + currentActive--; + if (currentActive < 1) { + currentActive = 1; } - - update() + update(); }) function update() { circles.forEach((circle, idx) => { - if(idx < currentActive) { - circle.classList.add('active') + if (idx < currentActive) { + circle.classList.add('active'); } else { - circle.classList.remove('active') + circle.classList.remove('active'); } }) - const actives = document.querySelectorAll('.active') - - progress.style.width = (actives.length - 1) / (circles.length - 1) * 100 + '%' + const actives = document.querySelectorAll('.active'); + progress.style.width = ((actives.length - 1) / (circles.length - 1)) * 100 + '%'; - if(currentActive === 1) { - prev.disabled = true - } else if(currentActive === circles.length) { - next.disabled = true + if (currentActive === 1) { + prev.disabled = true; + } else if (currentActive === circles.length) { + next.disabled = true; } else { - prev.disabled = false - next.disabled = false + prev.disabled = false; + next.disabled = false; } } \ No newline at end of file diff --git a/progress-steps/style.css b/progress-steps/style.css index 0b443be..fbab3a8 100644 --- a/progress-steps/style.css +++ b/progress-steps/style.css @@ -3,7 +3,6 @@ :root { --line-border-fill: #3498db; --line-border-empty: #383838; - } * { @@ -29,7 +28,7 @@ body { display: flex; justify-content: space-between; position: relative; - margin-bottom: 30px; + margin-bottom: 20px; max-width: 100%; width: 350px; } @@ -59,20 +58,36 @@ body { } .circle { + position: relative; + z-index: 1; background-color: #f1f1f1; - color:#e2e2e2; + color: #000000; border-radius: 50%; - height: 30px; - width: 30px; + height: 40px; + width: 40px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--line-border-empty); transition: 0.4s ease; + /* Add this to ensure the background is solid */ + box-shadow: 0 0 0 4px #f1f1f1; } .circle.active { border-color: var(--line-border-fill); + background-color: #e7f7fa; + animation-name: pop; + animation-timing-function: ease-in-out; + animation-duration: 0.5s; + font-size: 130%; + font-weight: 1000; +} + +.circle:not(.active) { + transform: scale(0.9); + opacity: 1; + transition: transform 0.3s ease-in-out, opacity 0.3s ease; } .btn { @@ -98,4 +113,19 @@ body { .btn:disabled { background-color: var(--line-border-empty); cursor: not-allowed; + transform: scale(1); } + +@keyframes pop { + 0% { + transform: scale(0.8); + } + + 60% { + transform: scale(1.1); + } + + 100% { + transform: scale(1); + } +} \ No newline at end of file diff --git a/rotating-nav-animation/index.html b/rotating-nav-animation/index.html index 98d8215..c588d2d 100644 --- a/rotating-nav-animation/index.html +++ b/rotating-nav-animation/index.html @@ -1,43 +1,51 @@ - - - - - - Rotating Navigation - - -
-
-
- - -
-
-
-

Amazing Article

- Florin Pop -

Lorem ipsum dolor sit amet consectetur adipisicing elit. Accusantium quia in ratione dolores cupiditate, maxime aliquid impedit dolorem nam dolor omnis atque fuga labore modi veritatis porro laborum minus, illo, maiores recusandae cumque ipsa quos. Tenetur, consequuntur mollitia labore pariatur sunt quia harum aut. Eum maxime dolorem provident natus veritatis molestiae cumque quod voluptates ab non, tempore cupiditate? Voluptatem, molestias culpa. Corrupti, laudantium iure aliquam rerum sint nam quas dolor dignissimos in error placeat quae temporibus minus optio eum soluta cupiditate! Cupiditate saepe voluptates laudantium. Ducimus consequuntur perferendis consequatur nobis exercitationem molestias fugiat commodi omnis. Asperiores quia tenetur nemo ipsa.

+ + + + + + Rotating Navigation + -

My Dog

- doggy -

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Sit libero deleniti rerum quo, incidunt vel consequatur culpa ullam. Magnam facere earum unde harum. Ea culpa veritatis magnam at aliquid. Perferendis totam placeat molestias illo laudantium? Minus id minima doloribus dolorum fugit deserunt qui vero voluptas, ut quia cum amet temporibus veniam ad ea ab perspiciatis, enim accusamus asperiores explicabo provident. Voluptates sint, neque fuga cum illum, tempore autem maxime similique laborum odio, magnam esse. Aperiam?

+ +
+
+
+ +
- - - - +
+

GitHub

+ Wikipedia +

GitHub is a proprietary developer platform that allows developers to create, store, manage, and share their code. It uses Git to provide distributed version control and GitHub itself provides access control, bug tracking, software feature requests, task management, continuous integration, and wikis for every project. Headquartered in California, it has been a subsidiary of Microsoft since 2018. +

+ +

GitHub Invertocat logo

+ GitHub +

It is commonly used to host open source software development projects. As of January 2023, GitHub reported having over 100 million developers and more than 420 million repositories, including at least 28 million public repositories. It is the world's largest source code host as of June 2023. Over five billion developer contributions were made to more than 500 million open source projects in 2024.

+
+
+ + + + + + \ No newline at end of file diff --git a/rotating-nav-animation/style.css b/rotating-nav-animation/style.css index c249065..40b325e 100644 --- a/rotating-nav-animation/style.css +++ b/rotating-nav-animation/style.css @@ -6,19 +6,20 @@ body { font-family: 'Lato', sans-serif; - background-color: #333; + background-color: #0c5c9e; color: #222; overflow-x: hidden; margin: 0; } .container { - background-color: #fafafa; + background-color: #e5ffde; transform-origin: top left; transition: transform 0.5s linear; width: 100vw; min-height: 100vh; padding: 50px; + position: relative; } .container.show-nav { @@ -27,8 +28,9 @@ body { .circle-container { position: fixed; - top: -100px; - left: -100px; + top: 0px; + left: 0px; + transform: translate(-50%, -50%); } .circle { @@ -37,7 +39,7 @@ body { width: 200px; border-radius: 50%; position: relative; - transition: transform 0.5s linear; + transition: transform 0.7s linear; } .container.show-nav .circle { @@ -49,7 +51,7 @@ body { position: absolute; top: 50%; left: 50%; - height: 100px; + height: 80px; background: transparent; border: 0; font-size: 26px; @@ -70,7 +72,7 @@ body { transform-origin: top left; } -.container.show-nav + nav li { +.container.show-nav+nav li { transform: translateX(0); transition-delay: 0.3s; } @@ -84,7 +86,7 @@ nav { nav ul { list-style-type: none; - padding-left: 30px; + padding-left: 20px; } nav ul li { @@ -100,17 +102,17 @@ nav ul li i { margin-right: 10px; } -nav ul li + li { +nav ul li+li { margin-left: 15px; transform: translateX(-150%); } -nav ul li + li + li { +nav ul li+li+li { margin-left: 30px; transform: translateX(-200%); } -nav a{ +nav a { color: #fafafa; text-decoration: none; transition: all 0.5s; @@ -126,7 +128,7 @@ nav a:hover { } .content { - max-width: 1000px; + max-width: 100vw; margin: 50px auto; } @@ -142,4 +144,4 @@ nav a:hover { .content p { color: #333; line-height: 1.5; -} +} \ No newline at end of file