Skip to content
Back to skills

Common Mobile Animation

ASecurity

Use the **Long** range: `500ms` (within `400–600ms`). ```dart class ExpandCard extends StatefulWidget { const ExpandCard({super.key}); @override State<ExpandCard> createState() => _ExpandCardState(); } class _ExpandCardState extends State<ExpandCard> with SingleTickerProviderStateMixin { late final AnimationController controller = AnimationController( vsync: this, duration: const Duration(milliseconds: 500), ); late final Animation<double> animation = CurvedAnimation( parent: controller, curv...

  • 584 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
development

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-1d2551a8/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-mobile-animation-1d2551a8)

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
### Flutter quick start: shared-element-style card expansion

Use the **Long** range: `500ms` (within `400–600ms`).

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

  @override
  State<ExpandCard> createState() => _ExpandCardState();
}

class _ExpandCardState extends State<ExpandCard>
    with SingleTickerProviderStateMixin {
  late final AnimationController controller = AnimationController(
    vsync: this,
    duration: const Duration(milliseconds: 500),
  );

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

  void onPanUpdate(DragUpdateDetails details) {
    controller.value += details.delta.dy / 400;
  }

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onPanUpdate: onPanUpdate,
      onPanEnd: (_) => controller.value > 0.5
          ? controller.forward()
          : controller.reverse(),
      child: AnimatedBuilder(
        animation: animation,
        builder: (_, child) => Transform.scale(
          scale: 1 + animation.value * 0.15, // GPU-friendly transform
          child: Opacity(
            opacity: 0.7 + animation.value * 0.3, // GPU-friendly opacity
            child: child,
          ),
        ),
        child: const Card(child: Text('Tap or drag to expand')),
      ),
    );
  }

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

For iOS, use a `500ms` `easeInOut` curve and connect back navigation to `interactivePopGesture` for an interruptible transition.

Avoid `linear` easing and avoid animating `width`, `height`, or padding. Profile the animation and target **60fps with no jank frames**; move heavy calculations outside animation frames.

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.