rails-animations

Automate CSS animations and Stimulus controllers in Rails views with Turbo compatibility.

Updated Jun 9, 2026
One-click install
npx skills add https://github.com/arthun01/achados-uesc --skill rails-animations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rails-animations
Source: https://github.com/arthun01/achados-uesc/tree/main/.opencode/skills/rails-animations
Command: npx skills add https://github.com/arthun01/achados-uesc --skill rails-animations

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rails, tailwindcss, turbo, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of implementing animations and micro-interactions in Rails views that are compatible with Turbo Drive, Turbo Frames, and Turbo Morph, without breaking on navigation.

Core Features & Use Cases

  • Turbo-optimized Animations: Ensures that CSS animations and transitions work seamlessly with Turbo, providing smooth user experiences.
  • CSS Animations: Offers a range of CSS-based animations for hover effects, transitions, and loading states.
  • Stimulus Controllers: Integrates with Stimulus to handle animations and transitions, leveraging the power of JavaScript for more complex interactions.
  • Use Case: Enhance the user interface of a Rails application with subtle animations and interactive elements that enhance the user experience without compromising performance.

Quick Start

To add a fade-in animation to a Rails view, use the 'rails-animations' skill and specify the CSS class 'animate-fade-in'.

Frequently Asked Questions about rails-animations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Turbo-safe animations to Rails views?

To add Turbo-safe animations to Rails views, you can apply CSS animation classes like 'animate-fade-in' directly to your view elements. This ensures smooth transitions during Turbo Drive and Turbo Morph navigations without breaking the page state.

Why do my CSS animations break after Turbo Drive navigation in Rails?

CSS animations often break after Turbo Drive navigation because standard JavaScript event listeners are not reattached during page morphing. Using Stimulus controllers integrated with Turbo ensures animations are properly initialized and persist across seamless navigations.

Do I need Tailwind CSS to implement micro-interactions with Stimulus in Rails?

Yes, Tailwind CSS v4 is required to implement micro-interactions using this approach. The automated CSS animations and Stimulus controllers are optimized for Rails 8.1+, Tailwind CSS v4, and Turbo 8+ environments to ensure optimal performance.

What is the best way to handle complex UI transitions with Turbo Frames and Morph?

The best way to handle complex UI transitions with Turbo Frames and Morph is to use Stimulus controllers. This combination leverages JavaScript to manage intricate animations and transitions, guaranteeing compatibility with Turbo's page replacement mechanisms.

Can I use standard CSS hover effects and loading states without breaking Turbo Morph transitions?

Yes, you can use CSS-based animations for hover effects and loading states without breaking Turbo Morph transitions. The implementation specifically focuses on ensuring these CSS transitions work seamlessly with Turbo Drive for smooth user experiences.