Skip to content

Commit

Permalink
Add marquee styles
Browse files Browse the repository at this point in the history
  • Loading branch information
agarun committed Jun 1, 2024
1 parent 55244cd commit e097392
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,27 @@
animation-delay: 150ms;
}
@keyframes marquee {
0% {
left: 0;
from {
transform: translateX(0);
}
100% {
left: -100%;
to {
transform: translateX(calc(-100% - 1rem));
}
}
.marquee div {
display: block;
position: absolute;
.marquee {
position: relative;
display: flex;
overflow: hidden;
animation: marquee 5s linear infinite;
user-select: none;
gap: 1rem;
}
.marquee-content {
display: flex;
justify-content: space-around;
flex-shrink: 0;
gap: 1rem;
min-width: 100%;
animation: marquee 10s linear infinite;
}

/* Lightbox */
Expand Down

0 comments on commit e097392

Please sign in to comment.