Skip to content

Commit 4673bc5

Browse files
committed
yeahh
1 parent 1a35059 commit 4673bc5

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

src/components/samples/sample.tsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,24 @@ const Sample = (props: SampleProps) => {
9696
{props.name}
9797
</span>
9898
</a>
99-
<div className="flex gap-3 text-gray-500 text-small lg:min-w-max min-w-0">
99+
<a
100+
className={`text-gray-500 text-small flex gap-3 justify-start overflow-clip cursor-pointer ${
101+
isHovered ? 'hover:overflow-clip' : 'hover:overflow-hidden'
102+
}`}
103+
// className="flex gap-3 justify-start text-gray-500 text-small lg:min-w-max min-w-0"
104+
onMouseEnter={() => setIsHovered(true)}
105+
onMouseLeave={() => setIsHovered(false)}
106+
>
100107
{props.tags.map((tag) => (
101-
<button className="hover:underline">{tag}</button>
108+
<button
109+
className={`inline-block transition-all duration-300 whitespace-nowrap ${
110+
isHovered ? 'marquee2' : ''
111+
}`}
112+
>
113+
{tag}
114+
</button>
102115
))}
103-
</div>
116+
</a>
104117
</div>
105118
<div className="md:col-span-3 max-w-[22rem] md:block hidden no-scrollbar">
106119
<Waveform

src/css/global.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,17 @@ input:checked + div svg {
3939
transform: translateX(-100%);
4040
}
4141
}
42+
43+
.marquee2 {
44+
animation: marquee 3s linear infinite;
45+
white-space: nowrap;
46+
}
47+
48+
@keyframes marquee2 {
49+
0% {
50+
transform: translateX(0);
51+
}
52+
100% {
53+
transform: translateX(-100%);
54+
}
55+
}

0 commit comments

Comments
 (0)