Files
atashdotdev/src/components/RotatingText.astro
Atridad Lahiji cbdab153da
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m25s
I guess DaisyUI has rotating text now... awesome!
2026-02-24 16:50:00 -07:00

23 lines
410 B
Plaintext

---
interface Props {
items: Array<{
text: string;
className: string;
}>;
}
const { items } = Astro.props;
---
<span class="text-rotate duration-9000">
<span>
{
items.map((item) => (
<span class:list={["mx-auto text-center", item.className]}>
{item.text}
</span>
))
}
</span>
</span>