Mobile Touch

dylantarre/animation-principles/skills/01-by-domain/mobile-touch

作者 dylantarre83597134ba8f无许可证99 个星标收录于 2026年10月8日更新于 2026年10月8日仓库9个月前更新

Use when designing iOS/Android gestures, haptic feedback, touch interactions, or native mobile animations.

仅含说明Design & Creative
AI 生成的概览

将迪士尼十二动画原则应用于移动端手势、触觉反馈以及 iOS/Android 原生动效设计。

功能
该技能通过把迪士尼十二动画原则映射到具体的移动端实现,为触摸交互和原生移动动画设计提供指导。内容涵盖橡皮筋效果、预备动作、舞台调度、惯性、弹簧缓动、弧线、触觉反馈、时间预算以及安全区域处理。它还包含 iOS 弹簧动画与触觉反馈、Android Material 弹簧动画的平台专属模式,以及触觉反馈映射表。
适用场景
适用于设计或评审 iOS 或 Android 手势、触觉反馈、触摸交互或原生移动动画的场景。它适合用于决定动效时长、缓动方式、手势驱动与预设过渡的选择,以及触觉与视觉的配合。
运行要求
无需脚本或工具,仅为说明性内容。示例引用了 iOS UIKit 与 Android SpringAnimation API,但阅读这些指导不需要任何运行时、软件包或凭据。

Mobile Touch Animation

Apply Disney's 12 animation principles to mobile gestures, haptics, and native app motion.

Quick Reference

PrincipleMobile Implementation
Squash & StretchRubber-banding, bounce on scroll limits
AnticipationPeek before reveal, long-press preview
StagingSheet presentations, focus states
Straight Ahead / Pose to PoseGesture-driven vs preset transitions
Follow Through / OverlappingMomentum scrolling, trailing elements
Slow In / Slow OutiOS spring animations, Material easing
ArcSwipe-to-dismiss curves, card throws
Secondary ActionHaptic pulse with visual feedback
TimingTouch response <100ms, transitions 250-350ms
ExaggerationBounce amplitude, haptic intensity
Solid DrawingRespect safe areas, consistent anchors
Appeal60fps minimum, gesture continuity

Principle Applications

Squash & Stretch: Implement rubber-band effect at scroll boundaries. Pull-to-refresh should stretch content naturally. Buttons compress on touch.

Anticipation: Long-press shows preview before full action. Drag threshold provides visual hint before item lifts. Swipe shows edge of destination content.

Staging: Use sheet presentations to maintain context. Dim and scale background during modal focus. Hero transitions connect views meaningfully.

Straight Ahead vs Pose to Pose: Gesture-following animations (drag, pinch) are straight ahead—driven by touch input. System transitions (push, present) are pose to pose—predefined keyframes.

Follow Through & Overlapping: Content continues moving after finger lifts (momentum). Navigation bar elements animate slightly after main content. Lists items settle with stagger.

Slow In / Slow Out: iOS uses spring physics—configure mass, stiffness, damping. Android Material uses standard easing: FastOutSlowIn. Never use linear for user-initiated motion.

Arc: Thrown cards follow parabolic arcs. Swipe-to-dismiss curves based on velocity vector. FAB expand/collapse follows natural arc path.

Secondary Action: Pair haptic feedback with visual response. Button ripple accompanies press. Success checkmark triggers light haptic.

Timing: Touch acknowledgment: <100ms. Quick actions: 150-250ms. View transitions: 250-350ms. Complex animations: 350-500ms. Haptic should sync precisely with visual.

Exaggeration: Pull-to-refresh stretches beyond natural—makes feedback clear. Error shake is pronounced. Success animations celebrate appropriately.

Solid Drawing: Respect device safe areas during animation. Maintain consistent transform origins. Account for notch/dynamic island in motion paths.

Appeal: Minimum 60fps, target 120fps on ProMotion displays. Gesture-driven animation must feel connected to finger. Interruptible animations essential.

Platform Patterns

iOS

swift
// Spring animation with follow-throughUIView.animate(withDuration: 0.5,               delay: 0,               usingSpringWithDamping: 0.7,               initialSpringVelocity: 0.5,               options: .curveEaseOut)
// Haptic pairinglet feedback = UIImpactFeedbackGenerator(style: .medium)feedback.impactOccurred()

Android

kotlin
// Material spring animationSpringAnimation(view, DynamicAnimation.TRANSLATION_Y)    .setSpring(SpringForce()        .setStiffness(SpringForce.STIFFNESS_MEDIUM)        .setDampingRatio(SpringForce.DAMPING_RATIO_MEDIUM_BOUNCY))    .start()

Haptic Guidelines

ActioniOSAndroid
Selection.selectionEFFECT_TICK
Success.successEFFECT_CLICK
Warning.warningEFFECT_DOUBLE_CLICK
Error.errorEFFECT_HEAVY_CLICK

Haptics are secondary action—always pair with visual confirmation.

来源与署名

来源:dylantarre/animation-principles位于skills/01-by-domain/mobile-touch提交8359713

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架