hextastudio/ui needs your support to stay running 🫶 Help us
Sparkle Text Effect
Sparkle text effect using Tailwind CSS and React.
Preview
I love hextastudio/UI
tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
keyframes: {
tsx
import { useEffect } from "react";
import { PiStarFourFill } from "react-icons/pi";
const SparkleText = () => {
useEffect(() => {
let index = 0,
interval = 1300;
const rand = (min: number, max: number) =>