perf(animation): optimize text animations for mobile phones with snappy word-level staggering and instant 120fps physics
This commit is contained in:
@@ -207,13 +207,13 @@ export function TrendyBentoSection({
|
||||
</div>
|
||||
|
||||
<h2 className="text-3xl sm:text-5xl font-display font-extrabold text-slate-900 tracking-tight text-balance">
|
||||
<TextAnimate animation="slideLeft" by="character">
|
||||
<TextAnimate animation="slideLeft" by="word">
|
||||
{title}
|
||||
</TextAnimate>
|
||||
</h2>
|
||||
|
||||
<p className="text-sm sm:text-base text-slate-600 font-sans text-pretty">
|
||||
<TextAnimate animation="fadeIn" by="word" delay={0.2}>
|
||||
<TextAnimate animation="fadeIn" by="word" delay={0.08}>
|
||||
{subtitle}
|
||||
</TextAnimate>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user