We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e716555 + 6ea6f46 commit f9bf403Copy full SHA for f9bf403
packages/ui/src/TextAnimation.tsx
@@ -10,6 +10,7 @@ export function TextAnimation({
10
width = null,
11
yBefore = 20,
12
isFramerCanvas = false,
13
+ fontFamily = '"Lora", serif',
14
}) {
15
const letterContainerVariants = {
16
before: { transition: { staggerChildren: 0.015 } },
@@ -63,7 +64,7 @@ export function TextAnimation({
63
64
style={{
65
position: 'relative',
66
wordBreak: 'break-word',
- width: width,
67
+ width: width === 0 ? 'fit-content' : width,
68
}}
69
>
70
<motion.h1
@@ -78,6 +79,7 @@ export function TextAnimation({
78
79
fontSize: fontSize,
80
color: color,
81
fontWeight: 500,
82
+ fontFamily: fontFamily,
83
84
85
{content.split(' ').map((word: string, wordI: number) => (
0 commit comments