File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
registry/components/magicui Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -44,17 +44,22 @@ export default function TextUnderline({
44
44
} ;
45
45
46
46
return (
47
- < motion . span
48
- className = { cn (
49
- "bg-no-repeat !inline bg-right-bottom transition-[background-size] ease-linear hover:bg-left-bottom" ,
50
- className ,
51
- ) }
52
- style = { backgroundStyle }
47
+ < motion . div
48
+ whileHover = "hover"
53
49
variants = { textVariants }
54
50
initial = "initial"
55
- whileHover = "hover "
51
+ animate = "initial "
56
52
>
57
- { word }
58
- </ motion . span >
53
+ < motion . span
54
+ className = { cn (
55
+ "bg-no-repeat !inline bg-right-bottom transition-[background-size] ease-linear hover:bg-left-bottom" ,
56
+ className ,
57
+ ) }
58
+ style = { backgroundStyle }
59
+ variants = { textVariants }
60
+ >
61
+ { word }
62
+ </ motion . span >
63
+ </ motion . div >
59
64
) ;
60
65
}
You can’t perform that action at this time.
0 commit comments