ComponentsCard Background Shine
Card Background Shine
Luxe
Explore the new website that simplifies the creation of sophisticated dark mode components.
CardBackgroundShine.tsx
export function CardBackgroundShine() {
return (
<div className="inline-flex animate-shine max-w-[350px] w-full items-center justify-center rounded-xl text-sm border border-white/10 bg-[linear-gradient(110deg,#000103,45%,#1e2631,55%,#000103)] bg-[length:200%_100%] px-4 py-5 transition-colors">
<div className="flex flex-col gap-2">
<h3 className="text-xl font-semibold text-neutral-200">Luxe</h3>
<p className="text-sm leading-[1.5] text-neutral-400">
Explore the new website that simplifies the creation of sophisticated
dark mode components.
</p>
</div>
</div>
);
}
tailwind.config.ts
{
"animation": {
"shine": "shine 2s linear infinite"
},
"keyframes": {
"shine": {
"from": {
"backgroundPosition": "0 0"
},
"to": {
"backgroundPosition": "-200% 0"
}
}
}
}