perf(animations): refactor ShiftableToolsGrid, cursor, hero & sections to locked 60-120fps with zero layout thrashing

This commit is contained in:
2026-11-04 18:48:24 +05:30
parent d9ef1497a3
commit 51afbf573b
9 changed files with 249 additions and 147 deletions
+3 -3
View File
@@ -78,16 +78,16 @@ export function FaqSection({
return (
<div
key={idx}
className="rounded-2xl border border-slate-200/90 bg-white overflow-hidden shadow-cream-sm hover:shadow-cream-md transition-all duration-200"
className="rounded-2xl border border-slate-200/90 bg-white overflow-hidden shadow-cream-sm hover:border-blue-300 transition-[border-color] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]"
>
<button
type="button"
onClick={() => setOpenIndex(isOpen ? null : idx)}
className="w-full p-6 text-left flex items-center justify-between gap-4 font-bold text-slate-900 hover:text-blue-600 transition-colors"
className="w-full p-6 text-left flex items-center justify-between gap-4 font-bold text-slate-900 hover:text-blue-600 transition-colors duration-200"
>
<span className="text-base sm:text-lg font-display">{item.q}</span>
<ChevronDown
className={`w-5 h-5 text-slate-400 shrink-0 transition-transform duration-200 ${
className={`w-5 h-5 text-slate-400 shrink-0 transition-transform duration-300 ease-[cubic-bezier(0.16,1,0.3,1)] ${
isOpen ? 'rotate-180 text-blue-600' : ''
}`}
/>