Skip to content
Back to skills

Common Mobile Animation

ASecurity

Assume Flutter and iOS are the target platforms. - Choose duration by interaction: - `100–150ms`: toggles and cell presses - `250–350ms`: navigation and modals - `400–600ms`: shared-element or complex-state transitions - Never exceed `600ms`. - Use platform-standard easing: - Flutter/Material: `Curves.fastOutSlowIn` - iOS: `.easeInOut` - Avoid `linear`. - Animate GPU-friendly properties such as `transform` and `opacity`. Avoid animating `width`, `height`, `padding`, or other layout-triggering...

  • 584 stars
  • 0 votes
  • 1 copy
  • 11 views
  • Added September 5, 2026
developmentgo

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-mobile-animation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Common Mobile Animation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Common Mobile Animation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-common-mobile-animation-agent-skills-standard/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-mobile-animation-agent-skills-standard)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Assume Flutter and iOS are the target platforms.

- Choose duration by interaction:
  - `100–150ms`: toggles and cell presses
  - `250–350ms`: navigation and modals
  - `400–600ms`: shared-element or complex-state transitions
  - Never exceed `600ms`.

- Use platform-standard easing:
  - Flutter/Material: `Curves.fastOutSlowIn`
  - iOS: `.easeInOut`
  - Avoid `linear`.

- Animate GPU-friendly properties such as `transform` and `opacity`. Avoid animating `width`, `height`, `padding`, or other layout-triggering properties.

Flutter quick start for a shared-element transition using the required long range:

```dart
class HeroCard extends StatefulWidget {
  const HeroCard({super.key});

  @override
  State<HeroCard> createState() => _HeroCardState();
}

class _HeroCardState extends State<HeroCard>
    with SingleTickerProviderStateMixin {
  late final AnimationController controller = AnimationController(
    vsync: this,
    duration: const Duration(milliseconds: 500), // Long: 400–600ms
  );

  late final Animation<double> opacity = CurvedAnimation(
    parent: controller,
    curve: Curves.fastOutSlowIn,
  );

  @override
  void initState() {
    super.initState();
    controller.forward();
  }

  @override
  void dispose() {
    controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return FadeTransition(
      opacity: opacity,
      child: Transform.scale(
        scale: 0.96 + (0.04 * opacity.value),
        child: const FlutterLogo(size: 96),
      ),
    );
  }
}
```

For gestures, connect the gesture progress directly to the animation so it remains interruptible:

```dart
GestureDetector(
  onPanUpdate: (details) {
    final progress = (details.localPosition.dx / context.size!.width)
        .clamp(0.0, 1.0);
    controller.value = progress;
  },
  onPanEnd: (_) {
    if (controller.value > 0.5) {
      controller.forward();
    } else {
      controller.reverse();
    }
  },
  child: child,
)
```

On iOS, use `UIViewPropertyAnimator` with `.easeInOut`, and integrate back navigation with `interactivePopGesture` for fluid interactive screen transitions.

Finally, profile the animation and target `60fps` with no jank frames. Keep heavy calculations, image decoding, and data processing outside animation frames. In Flutter, always `dispose()` every `AnimationController`; on iOS, invalidate timers and other animation-related callbacks when the view is removed.

Files in this skill

  • eval-1.baseline.md2.2 KB
  • eval-1.with-skill.md2.4 KB
  • eval-2.baseline.md1.1 KB
  • eval-2.with-skill.md900 B
  • eval-3.baseline.md624 B
  • eval-3.with-skill.md1.7 KB
  • trigger-1.md181 B
  • trigger-2.md148 B
  • trigger-3.md158 B
  • trigger-4.md136 B
  • trigger-5.md131 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.