perf(animation): optimize text animations for mobile phones with snappy word-level staggering and instant 120fps physics

This commit is contained in:
2026-11-05 12:45:11 +05:30
parent ec1f5c5c6a
commit f579b263b4
8 changed files with 110 additions and 53 deletions
@@ -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>