julianromli/ai-skills
Overview
This skill analyzes and implements purposeful, performant UI animations for Next.js + Tailwind + React projects. It focuses on high-impact moments—hero intros, hover feedback, content reveals, and page transitions—while preserving accessibility and performance. Use it to add, audit, or standardize motion across a codebase.
How this skill works
The skill scans project structure (app/ and components/) and inspects Tailwind configuration and installed animation libraries. It produces an animation audit, maps animation patterns to components with trigger types, and implements changes by extending Tailwind, adding reduced-motion support, and creating small reusable hooks when needed. Final verification includes visual QA, reduced-motion testing, and performance checks to prevent layout shifts.
When to use it
- When you want to add animations to pages or components
- To improve micro-interactions like hover and click feedback
- When introducing scroll reveal or staggered content animations
- To create smooth page transitions and navigation continuity
- When auditing existing motion for accessibility and performance
Best practices
- Prioritize key moments: hero, hover, content reveal, background, navigation
- Animate only transform and opacity; avoid animating layout properties
- Respect prefers-reduced-motion and add a global reduced-motion rule
- Start with CSS/Tailwind for low-cost effects; use Framer Motion/GSAP only for complex needs
- Implement IntersectionObserver-based scroll reveals and stagger children for rhythm
Example use cases
- Add a hero intro animation with staggered children on page load using Tailwind keyframes
- Implement hover micro-interactions for buttons and cards with transform+opacity
- Create a useScrollReveal hook to animate list items as they enter the viewport
- Add page transitions with Framer Motion for spatial continuity between routes
- Extend tailwind.config to include custom keyframes and animation utilities with reduced-motion fallback
FAQ
Use transforms and opacity only, avoid layout animations, throttle scroll observers, and test for jank. Keep animations short and hardware-accelerated.
How is reduced-motion handled?
Add a global prefers-reduced-motion media rule that disables or drastically reduces durations and iterations, and respect user preference across all animation implementations.
When should I use a library like Framer Motion or GSAP?
Use libraries for complex orchestration, gestures, or timeline control. Prefer CSS/Tailwind for simple fades, slides, and hover effects to minimize bundle size.
7 skills
This skill analyzes a project and implements purposeful UI animations for Next.js and Tailwind to enhance hero scenes, hover, and navigation.
This skill implements UI workflows in a React TypeScript frontend, wiring to existing APIs with design system compliance and accessible components.
This skill aids migrating image generation from Gemini to BytePlus SeeDream v4.5, improving quality, resolution, and cost efficiency.
This skill converts a webpage into production-ready Next.js 16 code by scraping and proposing a detailed analysis before code generation.
This skill helps you manage shadcn/ui components, generate install commands, and assemble multi-component UI features efficiently.
This skill generates structured, actionable task lists from specs or requirements to accelerate planning and ensure clear handoffs.
This skill converts slow client-side data fetching to server-side rendering with React Server Components to speed up initial load and improve SEO.