منحنى التسارع Easing (Timing Function)
طريقة تغيّر سرعة الحركة: تبدأ بطيئة ثم تتسارع، أو العكس. هي ما يجعل الحركة طبيعية أو آلية.
يُعرف أيضاً باسم: Timing Function
transition-timing-function / cubic-bezier()متى تستخدمه
في كل حركة في واجهة المستخدم.
خطأ شائع
لا تستخدم linear لحركة العناصر؛ فتبدو آلية.
إمكانية الوصول
Keep UI transitions between 150 and 300ms; long eases feel sluggish.
اسمه في الكود
| HTML/CSS | transition-timing-function / cubic-bezier() |
|---|---|
| React | transition={ ease } — framer-motion |
| Jetpack Compose | tween(easing = FastOutSlowInEasing) |
| SwiftUI | .animation(.easeInOut) |
برومبت جاهز لوكيل البرمجة
Add a Easing (Timing Function) to this screen.
What it is: How an animation’s speed changes over time; it makes motion feel natural or robotic.
Implement with: transition-timing-function / cubic-bezier() (HTML/CSS).
Accessibility: Keep UI transitions between 150 and 300ms; long eases feel sluggish.
When to use it: For every interface transition.
Avoid: Don’t use linear for moving elements; it looks mechanical.
Reuse the project's existing design tokens, spacing and component conventions.
أو ركّب صفحة كاملة من هذا العنصر وغيره →
البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.