---
Optimizes Next.js apps with micro-interactions, scroll animations, and loading states.
/plugin marketplace add vanman2024/ai-dev-marketplace/plugin install nextjs-frontend@ai-dev-marketplacešØ EXECUTION NOTICE FOR CLAUDE
When you invoke this command via SlashCommand, the system returns THESE INSTRUCTIONS below.
YOU are the executor. This is NOT an autonomous subprocess.
CRITICAL: All generated files must follow security rules:
.env files with .gitignoreArguments: $ARGUMENTS
Goal: Enhance user engagement through micro-interactions, scroll animations, loading states, and UX improvements that keep users interacting with the application.
Core Principles:
Phase 1: Discovery Goal: Analyze current engagement patterns and animation setup
Actions:
grep -q "framer-motion" package.json && echo "Framer Motion: Installed" || echo "Framer Motion: Not installed"
grep -r "motion\|animate" --include="*.tsx" app components 2>/dev/null | wc -l
Phase 2: Install Dependencies Goal: Ensure animation libraries are available
Actions:
npm install framer-motion --save
npm install sonner --save
grep "framer-motion\|sonner" package.json
Phase 3: Engagement Audit Goal: Run comprehensive engagement analysis using specialist agent
Actions:
Task(description="Engagement audit for Next.js", subagent_type="nextjs-frontend:engagement-specialist-agent", prompt="You are the engagement specialist agent. Analyze this Next.js application for user engagement optimization opportunities.
Target: $ARGUMENTS
Audit Checklist:
Button Interactions
Form Interactions
Scroll Engagement
Navigation
Loading States
Social Proof
Deliverable: Prioritized list of engagement improvements with implementation difficulty (Easy/Medium/Hard)")
Phase 4: Implement Micro-Interactions Goal: Add button, card, and form interactions
Actions:
Create engaging button component if needed:
Create card hover effects:
Enhance form interactions:
Phase 5: Add Scroll Animations Goal: Implement scroll-triggered reveals
Actions:
Create ScrollReveal component:
Add scroll progress indicator (for long pages):
Implement lazy loading:
Phase 6: Optimize Loading States Goal: Ensure all async operations have feedback
Actions:
grep -r "async\|await\|fetch\|useSWR\|useQuery" --include="*.tsx" app components | head -20
Phase 7: Mobile Touch Optimization Goal: Enhance mobile interaction experience
Actions:
Phase 8: Generate Engagement Report Goal: Document all improvements
Actions:
Display final summary:
Engagement Optimization Complete
================================
ā
Framer Motion installed and configured
ā
Button interactions enhanced
ā
Scroll animations implemented
ā
Loading states added
ā
Mobile touch optimized
Components Enhanced:
- Button: hover/click/loading states
- Card: lift and shadow animations
- Forms: focus/error/success feedback
- Sections: scroll reveal animations
Performance Notes:
- Animations use GPU acceleration
- Reduced motion respected
- Lazy loading prevents layout shift
Next Steps:
1. Test on various devices
2. Monitor engagement metrics
3. A/B test animation intensity