هل تعلم؟dyk.si

حركة النابض Spring Animation

حركة مبنية على الفيزياء: يتجاوز العنصر موضعه قليلاً ثم يعود ليستقر، مثل النابض.

linear() easing / Web Animations

متى تستخدمه

للسحب والإفلات والأزرار التي تريدها أن تبدو حيّة.

خطأ شائع

لا تجعل كل شيء يرتد؛ فهذا يتعب العين.

إمكانية الوصول

Keep damping high in UI; a lot of bounce is distracting.

اسمه في الكود

HTML/CSSlinear() easing / Web Animations
Reactframer-motion type: "spring"
Jetpack Composespring(dampingRatio, stiffness)
SwiftUI.spring(response:dampingFraction:)

برومبت جاهز لوكيل البرمجة

Add a Spring Animation to this screen. What it is: Physics-based motion where an element overshoots its target slightly and settles, like a spring. Implement with: linear() easing / Web Animations (HTML/CSS). Accessibility: Keep damping high in UI; a lot of bounce is distracting. When to use it: For drag and drop and controls that should feel alive. Avoid: Don’t make everything bounce; it tires the eye. Reuse the project's existing design tokens, spacing and component conventions.

أو ركّب صفحة كاملة من هذا العنصر وغيره →

البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.