Skip to content

Commit ceac7ce

Browse files
committed
feat: update hero component to include hover animation for sparkles
1 parent ae011ee commit ceac7ce

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

website/app/components/hero.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@ const Hero = () => {
2121
<div className="animate-in fade-in-40 flex flex-col items-center space-y-2 duration-700 md:flex-row md:space-x-2 md:space-y-0">
2222
<Button
2323
variant="default"
24-
className="w-full md:w-40"
24+
className="group w-full md:w-40"
2525
onClick={() =>
2626
toast.default({
2727
text: 'pheralb/toast',
2828
description: '✨ A beautiful toast library for React',
2929
})
3030
}
3131
>
32-
<Sparkles size={14} />
32+
<Sparkles
33+
size={14}
34+
className="duration-500 group-hover:animate-pulse group-hover:text-yellow-400"
35+
/>
3336
<span>Render a toast</span>
3437
</Button>
3538
<ExternalLink

0 commit comments

Comments
 (0)