Skip to content

Commit

Permalink
fix: text animate
Browse files Browse the repository at this point in the history
  • Loading branch information
dillionverma committed Jan 2, 2025
1 parent 6ad2bb2 commit 3cf331c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions registry/default/magicui/text-animate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ export function TextAnimate({
<AnimatePresence mode="popLayout">
<MotionComponent
variants={finalVariants.container}
initial={startOnView ? "hidden" : "show"}
whileInView={startOnView ? "show" : "hidden"}
initial="hidden"
whileInView={startOnView ? "show" : undefined}
animate={startOnView ? undefined : "show"}
exit="exit"
className={cn("whitespace-pre-wrap", className)}
Expand Down

0 comments on commit 3cf331c

Please sign in to comment.