Animate In
React component for animating elements with Tailwind CSS and CSS transitions

What it is
Animate In is a lightweight React UI component that simplifies adding entrance animations to web interfaces. Built for developers using Tailwind CSS, it provides a declarative way to animate elements from an initial state to a final state with configurable delay, duration, easing, and animation type. The component supports common animation patterns including fade, scale, fly, rotate, skew, and blur effects, all controlled through simple props.
The library integrates seamlessly with shadcn/ui projects and requires only Tailwind CSS and the mxcn utility for class merging. Installation is straightforward: copy the AnimateIn.tsx file into a project's components folder, or install the required dependencies if not using shadcn. The component respects user preferences for reduced motion, automatically disabling animations when the browser's prefers-reduced-motion setting is enabled.
Developers can customize animations by specifying Tailwind utility classes for the from and to states, allowing full control over opacity, transform, filter, and other CSS properties. The component renders as a div by default but accepts any valid HTML element via the as prop. Transition duration and delay are configurable in milliseconds, and the easing function defaults to ease-in-out.
Created by John Polacek, the component is offered as copy-paste code rather than an npm package, giving developers full ownership and freedom to modify the implementation. The project page includes a live playground demonstrating each animation type with adjustable parameters, making it easy to prototype and copy the exact configuration needed. Source code is available on GitHub under an open license.
This tool targets frontend developers and UI engineers building React applications with Tailwind CSS who need performant, accessible entrance animations without heavy animation libraries. It fills a niche between writing raw CSS transitions and adopting full-featured animation frameworks, offering a minimal, dependency-light solution that aligns with modern component-driven development workflows.
This description was generated by AI from the site's public content and may contain errors.
What you can do there
- Copy-paste React animation component
- Live playground with adjustable animation parameters
- Installation guide for shadcn/ui and standalone projects
- Source code access on GitHub
- Reduced motion accessibility support
Who it's for
React developers and UI engineers using Tailwind CSS
Frequently asked questions about animate-in.vercel.app
›How do I install Animate In in my React project?
If using shadcn/ui, copy AnimateIn.tsx to your components folder. Otherwise, install Tailwind CSS and mxcn, then add the component file to your project.
›What animation types does Animate In support?
It supports fade, scale in, shrink in, fly in, rotate in, skew in, and blur in animations, all configurable through Tailwind utility classes.
›Does Animate In respect reduced motion preferences?
Yes, the component detects the prefers-reduced-motion media query and automatically disables animations when enabled.
›Can I use custom HTML elements with Animate In?
Yes, the as prop accepts any valid HTML element type, defaulting to div if not specified.
›Is Animate In available as an npm package?
No, it is distributed as copy-paste component code that you add directly to your project for full customization control.
›What dependencies are required for Animate In?
Tailwind CSS and mxcn for class merging, or the cn utility from shadcn/ui if using that ecosystem.
›Where can I find the source code and examples?
The source code is on GitHub, and the project page includes a live playground with configurable animation demos.
