Skip to content

Commit

Permalink
CSS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yashrajnayak committed Jan 29, 2025
1 parent 2355a6f commit d28d326
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@
height: 100%;
z-index: 0;
display: none;
grid-template-rows: repeat(3, 1fr); /* Define 3 equal rows */
gap: 0;
padding: 0;
opacity: 0;
transition: opacity 0.5s ease;
}

.background-mosaic.initialized {
display: block; /* Changed from grid to block */
display: block;
opacity: 1;
}

.background-mosaic::after {
Expand All @@ -55,7 +53,7 @@
/* Update animation keyframes for smoother movement */
@keyframes slideRight {
0% {
transform: translateX(-16.665%); /* Half of image width */
transform: translateX(-33.33%);
}
100% {
transform: translateX(0);
Expand All @@ -67,7 +65,7 @@
transform: translateX(0);
}
100% {
transform: translateX(-16.665%); /* Half of image width */
transform: translateX(-33.33%);
}
}

Expand Down Expand Up @@ -109,7 +107,7 @@ body {
.content {
text-align: center;
position: relative;
z-index: 1;
z-index: 2;
}

.logo {
Expand Down

0 comments on commit d28d326

Please sign in to comment.