Skip to content

Commit d737a83

Browse files
committed
text animation
1 parent 46b7242 commit d737a83

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/index.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,5 +173,22 @@ html {
173173
body {
174174
@apply bg-background text-foreground overflow-x-hidden;
175175
}
176+
177+
h1, h2, h3, h4, h5, h6, p, span, a, li {
178+
color: transparent !important;
179+
background-clip: text !important;
180+
-webkit-background-clip: text !important;
181+
background-image: linear-gradient(90deg, #9ca3af 0%, #ffffff 50%, #9ca3af 100%) !important;
182+
background-size: 200% auto !important;
183+
animation: shimmer 5s linear infinite !important;
184+
}
176185
}
177186

187+
@keyframes shimmer {
188+
0% {
189+
background-position: 200% center;
190+
}
191+
100% {
192+
background-position: -200% center;
193+
}
194+
}

0 commit comments

Comments
 (0)